How does inheritance work in JavaScript?
When it comes to inheritance, JavaScript simply has one construct: objects. Each object has a separate property which operates a link to another object called its model. That prototype object has a prototype of its individual, and so on until an object is terminated with null as its prototype.