What does the Date object's method getTime() return?

76. What does the Date object's method getTime() return?

  1. Date in DD-MM-YYYY format
  2. Date in DD MON YYYY format
  3. Date in MON, DD YYYY format
  4. Number of milliseconds since January 1, 1970

Answer: D) Number of milliseconds since January 1, 1970

Explanation:

The Date object's method getTime() returns the number of milliseconds since January 1, 1970.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.