Prototype Property

This lesson explains the prototype property of objects and what __proto__ is used for by using an example.

We'll cover the following...

__proto__ Property

In JavaScript, objects contain a property [[Prototype]] that is hidden. This property either points to another object or is null.

The [[Prototype]] property of objects, i.e., anObject.[[Prototype]] defines the prototype of anObject. It is defined through the __proto__ ...