JavaScript objects and DOM objects use the same rules.
An array, a function, a date, a button, and the document all look different. Underneath, JavaScript searches every one of them in the same way: check the object, then follow its hidden prototype link to the next object. This page lets you change the objects and watch that search happen.
Trace one property lookup
Choose an object and ask for a property. Then walk the exact path JavaScript walks.
Change a prototype chain yourself
This safe sandbox contains one object called student and its backup object,
studentPrototype. Add the same property at different levels to see shadowing.
Explore the JavaScript and browser object universe
Pick a built-in JavaScript value, constructor, DOM node, event, or browser object. Every member below is discovered live. Click a chain level to see only what it contributes.
Properties and methods
The four ideas to keep
[[Prototype]] and keeps searching.