Printable View
How can you make private instance member?
instance member?
Quote: Originally Posted by mitchellsimoens instance member? When you create new object ("Class") and if there's any other way to make private variable than the one with closure. (function() { var foo = 'foo'; return 'bar' + foo; })()
Javascript doesn't really have a concept of private anything, the only way is with a closure.