JavaScript, Functional Programming, Web Development, State Encapsulation, Javascript State.
understanding of closures is already required when you’re working with functions in Javascript. Interestingly, Redux uses this pattern in their createStore function. For more on this approach, check out Douglas Crockford’s talk here: See discussion on inheritance and the function pattern at 41:55.