constructor
Date
instance property
JS Home <<
JS Reference <<
Date <<
constructor
Description
Returns a reference to the function that created the prototype.
Syntax
Signature | Description |
---|---|
aDate.constructor | Returns a reference to the function that created the prototype. |
Parameters
None.
Examples
The code below displays the constructor
property of Date
.
var todaysDate = new Date();
alert('Date constructor is ' + todaysDate.constructor);
Related Tutorials
JavaScript Intermediate Tutorials - Lesson 2 - Dates and Times