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