
Encapsulation in JavaScript: Real Private Data, Not Just a Convention
How do you make data really private in JavaScript? Use #private class fields, closures or ES modules. Each of them hides data in a different way, and for many years JavaScript had no real private data




