JS: Prototype Chain
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
- JS: Object Tutorial
- JS: Object Overview
- JS: Object Type
- JS: Test is Object Type π
- JS: Determine Type of Object
- JS: Prototype and Inheritance
- JS: Prototype Chain
- JS: Object.prototype.isPrototypeOf
- JS: Get Set Prototype
- JS: Show Prototype Chain π
- JS: Create Object
- JS: Object Literal Expression
- JS: Create Object with Parent X
- JS: Prevent Adding Property
- JS: Deep Copy Object, Array π
- JS: Test Object Equality π
- JS: Add Method to Prototype
- JS: Object Object
- JS: Object Constructor
- JS: Object.prototype