Web site designers - JavaScript Programmer’s Reference Number.prototype (Property) The prototype for
JavaScript Programmer’s Reference Number.prototype (Property) The prototype for the Number object that can be used to extend the interface for all Number objects. Availability: ECMAScript edition 2 JavaScript 1.1 JScript 1.0 Internet Explorer 3.02 Netscape 3.0 Netscape Enterprise Server version 2.0 Opera 3.0 Property/method value type: Number object -Number.prototype JavaScript syntax: -myNumber.constructor.prototype The prototype property refers to the built-in Number prototype object. The example demonstrates how to provide extensions to all instances of this class by adding a function to the prototype object. Example code:
Number object, Number(), Number(), Number.constructor, Number.toString(), Number.valueOf(), prototype property See also: Property attributes: DontDelete, DontEnum. 1560