Archive: 2016/6

0

Private properties for ES6 JavaScript

In ES5 JavaScript, it is relatively easy to have private properties in prototype definition. It goes like this. 1234567891011121314151617181920212223242526272829303132333435363738394041// es5 constru