Web | This Site

JavaScript Basics
JavaScript Objects
JavaScript Advanced
JS Useful References
JS Useful Resources
Selected Reading
© 2011 TutorialsPoint.COM

| Home |  | References |  | Discussion Forums |  | About TP

# Javascript Date constructor Property

## Description:

Javascript date constructor property returns a reference to the array function that created the instance's prototype.

## Syntax:

    date.constructor

Here is the detail of parameters:

- NA

## Return Value:

Returns the function that created this object's instance.

## Example:

    <html>
    <head>
    <title>JavaScript Date constructor Property</title>
    </head>
    <body>
    <script type="text/javascript">
       var dt = new Date();
       document.write("dt.constructor is : " + dt.constructor);
    </script>
    </body>
    </html>

This will produce following result:

    dt.constructor is: function Date() { [native code] }

To understand it in better way you can Try it yourself.

Advertisement

Online Image Processing

Indian Baby Names