Which of the following are static methods in JavaScript?
A
Date.parse()
B
Date.UTC()
C
Both Date.parse() and Date.UTC()
D
Date.clear()
Correct Answer: Both Date.parse() and Date.UTC()
Date objects are created with the new Date() constructor. 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.