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