Every object has an internal link to its prototype (`[[Prototype]]`). When accessing properties, the engine traverses the chain until found or `null` is reached.
js
const proto = { greet() { return "hello"; } };
const obj = Object.create(proto);100 XP to Apprentice
Prototypal inheritance and Object.create.
AI translates the explanation and quiz text while preserving code and answer scoring.
Every object has an internal link to its prototype (`[[Prototype]]`). When accessing properties, the engine traverses the chain until found or `null` is reached.
js
const proto = { greet() { return "hello"; } };
const obj = Object.create(proto);1. What terminates the JavaScript prototype chain?
2. How do you create an object without a prototype?
3. What does Object.hasOwn(obj, 'prop') check?