Interesting reading, how to do Javascript OO
As we already know, JavaScript is an object oriented language. In this article we will see JavaScript example to inheritance and subtype polymorphism.
For solid base, I really recommend to read first about JavaScript Prototype.
Follow below link to read:
"Object Oriented Programming with JavaScript"