.valueOf()

Term side of the Card
Topic: Date
Unit title: .valueOf()
Categories: Method
Explanation side of the Card

Explanation: The method that returns the primitive value of a specified date as the number of milliseconds since January 1, 1970, 00:00:00 UTC (the Unix Epoch). It provides a numeric representation of the date and time.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1
  • The safari browser supports this feature starting from version 1
Availability: