Prototypes and Prototype Chain — a practical guide to JavaScript prototypes with clear examples you can reuse in real projects.
JavaScript Tutorial Series (60/101). Prefer one article? Read the complete JavaScript tutorial.
Short description
When a property is missing, JS walks the prototype chain.
Prototype tip
const proto = { greet() { return 'hi'; } };
const obj = Object.create(proto);
obj.greet();