prototype  Date  class property JS Home  <<  JS Reference  <<  Date  <<  prototype

Description

Enables property assignment to objects of type Date.

  • prototype is a class property of Date and as such should be used on the class and not an instance.

Syntax

Signature Description
Date.prototypeEnables property assignment to objects of type Date.

Parameters

None.

Examples

The code below displays Date prototype.



alert('Date prototype is ' + Date.prototype);

Press the button below to action the above code:

Related Tutorials

JavaScript Intermediate Tutorials - Lesson 2 - Dates and Times