Inheritance

Inheritance can be done through a prototype. First, add properties and methods to the parent prototype. Second, set the child prototype to the parent object. Third, set constructor for child class, because by defualt will be parent constructor. If necessary override the parent methods.

Since ECMAScript 2015 more classical syntax available.