__proto__ (Property)

A Netscape special prototype inheritance property.

Availability:

JavaScript - 1.2
Netscape - 4.0
Property/method value type:Function object
JavaScript syntax:NmyClosure.__proto__

With the __proto__ property in Netscape, you can explicitly initialize the prototype inheritance chain in your own custom constructors.

Warnings:

Example code:

   // Create a cuboid object

   var AAA = { length:100, width:200, height:300 };

   // Create a cuboid that shares the height value

   var BBB = { length:50, width:100, __proto__:AAA };

See also:__parent__, Subclasses