name  ReferenceError  instance property JS Home  <<  JS Reference  <<  ReferenceError  <<  name

Description

Contains a name for an error.

Syntax

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

Parameters

None.

Examples

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



var anError = new ReferenceError();

anError.name = 'referenceErrorName';

alert('ReferenceError Name is: ' + anError.name);

Press the button below to action the above code:

Related Tutorials

JavaScript Advanced Tutorials - Lesson 2 - Errors

JavaScript Basics

JavaScript Basics

JavaScript Intermediate

JavaScript Intermediate

JavaScript Advanced

JavaScript Advanced

JavaScript Reference

JavaScript Entities

Globals

ReferenceError

Class Properties
prototype
Instance Properties
constructor
name
Class Methods
None.
Instance Methods Getters
None.
Instance Methods Setters
None.