constructor
TypeError
instance propertyS2C Home
« Globals « TypeError « constructor
Description
Returns a reference to the function that created the prototype.
Syntax
Signature | Description |
---|---|
aTypeError.constructor | Returns a reference to the function that created the prototype. |
Examples
The code below displays TypeError
prototype function of TypeError
.
var anError = new TypeError();
alert('TypeError constructor is ' + anError.constructor);
Related Tutorials
JavaScript Advanced Tutorials - Lesson 2 - Errors