name
TypeError
instance property
JS Home <<
JS Reference <<
TypeError <<
name
Description
Contains a name for an error.
Syntax
Signature | Description |
---|---|
aTypeError.name | Returns a reference to the function that created the prototype. |
Parameters
None.
Examples
The code below displays the name
property of the TypeError
object.
var anError = new TypeError();
anError.name = 'typeErrorName';
alert('TypeError Name is: ' + anError.name);
Related Tutorials
JavaScript Advanced Tutorials - Lesson 2 - Errors