Hint
Object.create(proto) is the direct way to set up prototype inheritance without classes.
const proto = {
greet() { return 'Hello, ' + this.name; }
};
const obj = Object.create(proto);
obj.name = 'Alice';
console.log(obj.greet());
console.log(Object.getPrototypeOf(obj) === proto);Hello, Alice true
Explanation: Object.create(proto) creates a new object with proto as its prototype. greet() is found via chain.
Key Insight: Object.create(proto) is the direct way to set up prototype inheritance without classes.