prototype ReferenceError class property
JS Home <<
JS Reference <<
ReferenceError <<
prototype
Description
Enables property assignment to objects of type ReferenceError.
- Like all class properties
prototypeshould be used on the class rather than an instance of the class.
Syntax
| Signature | Description |
|---|---|
ReferenceError.prototype | Enables property assignment to objects of type RangeError. |
Parameters
None.
Examples
The code below displays the ReferenceError prototype, which is inherited from the Error object.
alert('ReferenceError prototype is ' + ReferenceError.prototype);
Related Tutorials
JavaScript Advanced Tutorials - Lesson 2 - Errors
