JavaScript, Functional Programming, Web Development, State Encapsulation, Javascript State.
at all. It’s just a function that returns an object. We create one like this: const x = MyObj2(0) We didn’t even need to use the new keyword because we’re not going to be modifying any prototypes (which is a bit of a code smell in 2019, IMHO). It’s simply a function that returns an object. Similar