prototype  ReferenceError  class propertyS2C Home  « Globals « ReferenceError « prototype

Description

Enables property assignment to objects of type ReferenceError.

  • Like all class properties prototype should be used on the class rather than an instance of the class.

Syntax

Signature Description
ReferenceError.prototypeEnables property assignment to objects of type ReferenceError.

Parameters

None.

Examples

The code below displays the ReferenceError prototype, which is inherited from the Error object.



alert('ReferenceError prototype is ' + ReferenceError.prototype);

Press the button below to action the above code:


Related Tutorials

JavaScript Advanced Tutorials - Lesson 2 - Errors


go to home page Homepage go to top of page Top