constructor
Function
instance propertyS2C Home
« Globals « 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