constructor  Function  instance propertyS2C Home  « Globals « Function « constructor

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