prototype chain
Last updated
Was this helpful?
Last updated
Was this helpful?
⟩ ⟩ object ⟩ ⟩ chain
the linked series of objects of an object is called it's prototype chain.
the of a (/ notation) always creates/sets a property in the original object, it never modifies objects in the prototype chain.
"obj A" checks if A.prototype
is in the prototype chain of obj
.
replit ⟩
- visualize prototype chain (cool ⭐️)