JavaScript & TypeScript

JavaScript Prototype Chain

/ˈdʒɑːvəskrɪpt ˈprəʊtətaɪp tʃeɪn/

Definition

The linked chain of objects from which a JavaScript object inherits properties and methods.

Example in context

"myArray.map() works because Array.prototype.map exists — the engine follows the prototype chain to find it."

Related terms

Practice this term

Master JavaScript Prototype Chain in context by working through exercises in the JavaScript & TypeScript module. You'll see the term used in real engineering scenarios with multiple-choice, fill-in-the-blank, and matching drills.