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.prototypeEnables 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);

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