Javascript examples for Date:constructor
In JavaScript, the constructor property returns the constructor function for an object.
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var d = new Date();/*from w w w .jav a 2s.c o m*/ document.getElementById("demo").innerHTML = d.constructor; </script> </body> </html>