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


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




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net