Prototype Chain

noun

say it: “PROH-tuh-type chayn” /ˈproʊtətaɪp tʃeɪn/

The line of linked prototypes JavaScript walks to find a property: the object, then its prototype, then that one's prototype, until it finds it or runs out.

What is Prototype Chain in JavaScript?

Prototype Chain — The linked sequence of prototypes searched during property lookup.

const animal = { eats: true };
const dog = Object.create(animal);

In a sentence

  • “fighter.toString() worked because the prototype chain led from Fighter to Ship to Object.”

Level: Master · More JavaScript terms at this level

Updated