How the prototype chain works in JavaScript
In JavaScript an object can call a method it doesn't own. Class methods are defined once, on a shared prototype, and instances reach for them through a link. The mechanism is called the prototype chain. A note on how it works and why.