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.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

JavaScript Basics

JavaScript Basics

JavaScript Intermediate

JavaScript Intermediate

JavaScript Advanced

JavaScript Advanced

JavaScript Reference

JavaScript Entities

Globals

Function

Class Properties
prototype
Instance Properties
constructor
length
Class Methods
None.
Instance Methods Getters
apply()
bind()
call()
toString()
Instance Methods Setters
None.

Statements

Operators