01101011 01101111 01100100 01101001 01101110 01100111

OOP Inheritance in javascript

(Depends who you ask but) Javascript doesn’t natively support inheritance. It can be implemented to support object-oriented programming and encapsulation pretty easily, but inheritance is not offered automatically.

There are many patterns on the web on how write javascript to provide inheritance. Here’s the simplest (perhaps most common (and incorrect)) one: