What is the prototype chain?
The prototype chain is the chain of objects that JavaScript follows to look up properties
or methods.
- If a property isn’t found on the object itself, JS checks the object's prototype, and
continues up the chain.
Example:
console.log(child.toString()); // from Object.prototype