JavaScript, Functional Programming, Web Development, State Encapsulation, Javascript State.
to the ES2015 class approach, we can set the value with: x.set(2) Or: x.myVal = 2 This approach still has all the issues of not having private fields, but at least we’re no longer in a different paradigm. I argue that this itself is a big improvement over the ES2015 class approach because there