title: Object oriented JavaScript with example
body: <p>I am aware of general Object-oriented programming principles like Encapsulation, Inheritance, Polymorphism, Abstraction, etc</p>
  
  <p>But would now want to understand these concepts from a JavaScript perspective. 
  Could someone take a very basic example and run how these works in JS context (Encapsulation, Inheritance, Polymorphism, Abstraction)</p>
  
  <p>I have read a lot about these online, but the articles have left me more confused.</p>
  
  <p>Thank you.</p>