🔸prototype

🚧 under construction

JSvalueobject ⟩ prototype

  • objects have a special hidden property [[Prototype]] that is either null or references another object (other types are ignored).

  • that object is called a “prototype”.

  • when we access an object's method/property, and it’s missing, JavaScript automatically takes it from the prototype.

Last updated

Was this helpful?