24.87. Function.prototype: the prototype for a class of objectsECMAScript v124.87.1. Synopsisfunction.prototype 24.87.2. DescriptionThe 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 AlsoChapter 9 |