Problem Statement
How does JavaScript resolve a property when it’s not found on the object itself?
Explanation
If a property is missing on the object, JavaScript consults the object’s [[Prototype]] and continues up the chain until it finds the property or reaches null.
This is called prototypal inheritance and explains why objects can appear to "have" methods they never defined directly.
Code Solution
SolutionRead Only
const proto = { kind: 'base' };
const obj = Object.create(proto);
obj.name = 'JS';
console.log(obj.kind); // 'base' (found via prototype chain)