JavaScript & jQuery Tutorials

JS Home Right Arrow JS Reference Right Arrow Number Right Arrow constructor

constructor  Number  instance property

Description

Returns a reference to the function that created the prototype.

Syntax


Signature Description
aNumber.constructorReturns 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);

Press the button below to action the above code:

Related Tutorials

JavaScript Advanced Tutorials - Lesson 3 - Number



  

go to home page Homepage go to top of page Top