JavaScript: The Definitive Guide

24.87. Function.prototype: the prototype for a class of objects

ECMAScript v1

24.87.1. Synopsis

function.prototype

24.87.2. Description

The prototype property is used when a function is used as a constructor. It refers to an object that serves as the prototype for an entire class of objects. Any object created by the constructor inherits all properties of the object referred to by the prototype property.

See Chapter 9 for a full discussion of constructor functions, the prototype property, and the definition of classes in JavaScript.

24.87.3. See Also

Chapter 9

Категории