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