constructor
Number
instance property
JS Home <<
JS Reference <<
Number <<
constructor
Description
Returns a reference to the function that created the prototype.
Syntax
Signature | Description |
---|---|
aNumber.constructor | Returns a reference to the function that created the prototype. |
Parameters
None.
Examples
The code below displays the prototype function of Number
.
var aNumber = new Number;
alert('Number constructor is ' + aNumber.constructor);
Related Tutorials
JavaScript Advanced Tutorials - Lesson 3 - Number