name  RangeError  instance property JS Home  <<  JS Reference  <<  RangeError  <<  name

Description

Contains a name for an error.

Syntax

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

Parameters

None.

Examples

The code below displays the name property of the RangeError object.


var anError = new RangeError();
anError.name = 'rangeErrorName';
alert('RangeError Name is: ' + anError.name);

Press the button below to action the above code:

Related Tutorials

JavaScript Advanced Tutorials - Lesson 2 - Errors