Javascript Reference
Categories: Number

javascript Number prototype

@June 10, 2008, 3:10 p.m.
prototype Firefox/Netscape/NN 3 IE 4 ECMA 1  

 

Read/Write  

A property of the static Number object. Use the prototype property to assign new properties and methods to future instances of a Number value created in the current document. See the Array.prototype property description for examples. There is little need to create new prototype properties or methods for the Number object.

 
Example
 
Number.prototype.author = "DG";
 
Value

Any data, including function references.


Powered by Linode.