Specifies the function that creates a date.
Syntaxdate.constructor
Examples
The following example illustrates the use of the constructor property.
var x = new Date("Hi");
if (x.constructor == Date)
document.write("Object is a date.");
Remarks
The required date is the name of a date 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.
AttributionsMicrosoft Developer Network: Article
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