A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/Error/constructor below:

constructor ยท WebPlatform Docs

constructor Summary

Specifies the function that creates an Error.

Syntax
error.constructor
Examples

The following example illustrates the use of the constructor property.

var x = new Error("This is an error");

 if (x.constructor == Error)
     document.write("Object is an error.");

 
 
Remarks

The required error is the name of an error object.

The constructor property is a member of the prototype of every object that has a prototype. The constructor property contains a reference to the function that constructs instances of that particular object.

Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4