loading...

re: Emulating "Private" Variables in JavaScript with Closures and Factory Functions VIEW POST

FULL DISCUSSION
 

Despite the recent implementation of classes in JavaScript, there has never been a native way of controlling the visibility of an object's property.

Soon: Stage 3 proposal for private fields, available already in Babel.

 

Ooh. Now this is interesting.

Code of Conduct Report abuse