Skip to main content

Prototype โ†” Model blueprint Object to Delegate methods & properties, link via __proto__, to mimic "classical" OOP Inheritance

__proto__โ€‹

[[ ]] property on all objects, link to Constructor Function

<Object\>.prototype === <Object\>.__proto__

.isPrototypeOf()โ€‹

return boolean if <calling object> prototype of linked object

Referencesโ€‹

  1. Prototypal Inheritance โ†” Link for all Object to their Prototype, to mimic Inheritance access to Method & props

  2. Array โ†” Global Object Prototype for Array data type

  3. new โ†” JS Operatorto call Constructor Function, assign this keyword & link to Prototype

  4. Prototype Chain โ†” Series of links to connect Object to Prototype; to mimic Inheritance