constructor
Function
instance property
JS Home <<
JS Reference <<
Function <<
constructor
Description
Returns a reference to the function that created the prototype.
Syntax
Signature | Description |
---|---|
aFunction.constructor | Returns 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);
Related Tutorials
JavaScript Intermediate Tutorials - Lesson 8 - Functions