constructor  TypeError  instance property JS Home  <<  JS Reference  <<  TypeError  <<  constructor

Description

Returns a reference to the function that created the prototype.

Syntax

Signature Description
aTypeError.constructorReturns a reference to the function that created the prototype.

Parameters

None.

Examples

The code below displays the prototype function of TypeError.


var anError = new TypeError();

alert('TypeError constructor is ' + anError.constructor);

Press the button below to action the above code:

Related Tutorials

JavaScript Advanced Tutorials - Lesson 2 - Errors

JavaScript Basics

JavaScript Basics

JavaScript Intermediate

JavaScript Intermediate

JavaScript Advanced

JavaScript Advanced

JavaScript Reference

JavaScript Entities

Globals

TypeError

Class Properties
prototype
Instance Properties
constructor
name
Class Methods
None.
Instance Methods Getters
None.
Instance Methods Setters
None.

Statements

Operators