Vidyalelo
JavaScript · Q113

Caching And Debugging

Programming · JavaScript · question 113

Q113

Which of the following are static methods in JavaScript?

A.
Date.parse()
B.
Date.UTC()
C.
Both Date.parse() and Date.UTC()
Answer
D.
None of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
Date.parse() parses a string representation of a date and time and returns the internal millisecond representation of that date. Date.UTC() Returns the millisecond representation of the specified UTC date and time.