1.

How many static methods does a Date object have?(a) 3(b) 5(c) 4(d) 2This question was addressed to me in a national level competition.The origin of the question is Comparison of Core JavaScript versus Frameworks in section Caching, Debugging and Animation of JavaScript

Answer» CORRECT choice is (d) 2

Easiest explanation: Date OBJECTS are CREATED with the NEW Date() constructor. The Date object defines TWO static methods namely Date.parse() and Date.UTC().


Discussion

No Comment Found

Related InterviewSolutions