1.

What does the method Performance.now() return?(a) DOMTimeStamp(b) DOMHighResTimeStamp(c) DOM\Stamp(d) TimeStampI got this question in an online quiz.The origin of the question is Invocation of the Performance Object topic in chapter Invocation and Performance Navigation of JavaScript

Answer»

The correct choice is (B) DOMHighResTimeStamp

The best I can explain: The Performance.now() method returns a DOMHighResTimeStamp, MEASURED in milliseconds, ACCURATE to one thousandth of a millisecond EQUAL to the number of milliseconds since the PerformanceTiming.navigationStart property and the call to the method. The returned value represents the time elapsed since the time origin.



Discussion

No Comment Found

Related InterviewSolutions