This is the page that made doing OOP in Javascript click for me.
JavaScript is the world's most misunderstood programming language . Some believe that it lacks the property of information hiding because objects cannot have private instance variables and methods. But this is a misunderstanding. JavaScript objects can have private members. Here's how.