Home »
MCQs »
JavaScript MCQs
What does the Date object's method getTime() return?
76. What does the Date object's method getTime() return?
- Date in DD-MM-YYYY format
- Date in DD MON YYYY format
- Date in MON, DD YYYY format
- 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.