๐Ÿ”ธprototype

๐Ÿšง under construction

JS โŸฉ value โŸฉ object โŸฉ 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?