JavaScript: Prototype Chain

By Xah Lee. Date: .

A object's parent of parent of parent etc forms a chain. This is called a prototype chain.

Note: the prototype chain is never circular, and is impossible to create circular prototype chain.

Note: not all objects have a parent, but buildin objects do (except Object.prototype, which is the root, having parent of null ).

You can create a object without parent by Object.create(null). [see Object.create]

JavaScript Object and Inheritance

BUY Ξ£JS JavaScript in Depth