1.

What is the parameter of the method Date.parse()?(a) date(b) string(c) datestring(d) stringI have been asked this question in an online quiz.The doubt is from Parsing Values using JavaScript in section Parsing, Benchmarking and Logging of JavaScript

Answer»

The correct answer is (C) datestring

To explain: The parse method is defined as Date.parse(datestring). The parse() method PARSES a date string and returns the NUMBER of milliseconds between the date string.



Discussion

No Comment Found

Related InterviewSolutions