constructor  RangeError  instance property JS Home  <<  JS Reference  <<  RangeError  <<  constructor

Description

Returns a reference to the function that created the prototype.

Syntax

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

Parameters

None.

Examples

The code below displays RangeError prototype function of RangeError.


var anError = new RangeError();
alert('RangeError constructor is ' + anError.constructor);

Press the button below to action the above code:

Related Tutorials

JavaScript Advanced Tutorials - Lesson 2 - Errors