prototype chain

The linked list of objects JavaScript searches when looking up a property, which is how inheritance works under the hood.

In more detail

Each object points to a prototype, which points to another, ending at Object.prototype. instanceof walks this chain looking for a class's prototype. Changing shared prototypes affects every object that uses them, so modern code avoids it.

Related terms

Taught in

References