JavaScript & jQuery Tutorials

JS Home Right Arrow JS Reference Right Arrow Function Right Arrow constructor

constructor  Function  instance property

Description

Returns a reference to the function that created the prototype.

Syntax


Signature Description
aFunction.constructorReturns a reference to the function that created the prototype.

Parameters

None.

Examples

The code below displays the prototype function of Function.


var newFunction = new Function('a', 'return a * a');
alert('Function constructor is ' + newFunction.constructor);

Press the button below to action the above code:

Related Tutorials

JavaScript Intermediate Tutorials - Lesson 8 - Functions



  

go to home page Homepage go to top of page Top