Data Hiding in Javascript

Viewed 3486

In the Java Programming language the private keyword is used for data hiding - a field or a method marked as private is not visible outside the classes or the subclasses.

How is that achieved in javascript?

4 Answers
Related