liveBook · Manning

Property lookup

Property lookup is JavaScript’s process of resolving a property by checking an object and, if necessary, its prototype chain.

How 2 Manning books explain it

The Joy of JavaScript

The process by which a language determines which property value or method is returned when a property access occurs.

How it is used
Explains how property access and method calls work across linked JavaScript objects.
How deep it goes
Traces lookup from an object through [[Prototype]] to Object.prototype, including failure behavior; leaves shadowing largely unexplored.
Examples
Uses linked transaction objects to contrast local and inherited properties, then a missing constructor-prototype method to expose a broken chain.
What you can do after
Diagnose/debug missing inherited properties or methods by checking where a lookup starts and how prototype links are configured.

Read how The Joy of JavaScript explains property lookup →

JavaScript in Depth

The JavaScript procedure for resolving a property by checking an object and then traversing its prototype chain.

How it is used
Diagnoses surprising inherited values, shadowed properties, and security-sensitive behavior caused by prototype-chain reads.
How deep it goes
Traces own descriptors, data properties, accessors, prototype traversal, and null termination, while distinguishing reads from writes.
Examples
Uses drawer objects, inherited labels, accessor setters, authorization checks, and inherited configuration defaults.
What you can do after
Diagnose inherited-property bugs by inspecting descriptors and prototype chains with Object.getOwnPropertyDescriptor and Object.getPrototypeOf.

Read how JavaScript in Depth explains property lookup →

What to know first

Related concepts

Questions about property lookup

What is property lookup?

Property lookup is JavaScript’s process of resolving a property by checking an object and, if necessary, its prototype chain.

Which Manning books explain property lookup?

The Joy of JavaScript and JavaScript in Depth.

What should I know before learning property lookup?

Manning books that teach property lookup usually introduce prototype chain first.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.