Posts Tagged: inheritance

Inheritance in JavaScript

Native JavaScript inheritance is prototypical. For one, this means that you don’t inherit from classes, you inherit from objects. You don’t define classes and instantiate them. Instead, you create objects and use them as a “prototype” or “base” for your own object instances. In JavaScript, this is facilitated with the mechanisms called “prototype” and “constructor”.