1.

Which of the following is a read-only property?(a) PerformanceTiming.navigationStart(b) PerformanceTiming.fetchStart(c) PerformanceTiming.navigationStart & PerformanceTiming.fetchStart(d) PerformanceTiming.responseStartThe question was asked in an internship interview.My question comes from Invocation of the Performance Object in division Invocation and Performance Navigation of JavaScript

Answer»

The correct answer is (c) PerformanceTiming.navigationStart & PerformanceTiming.fetchStart

For explanation I WOULD say: PerformanceTiming.navigationStart read-only PROPERTY returns an unsigned long long REPRESENTING the moment, in miliseconds since the UNIX epoch, right after the prompt for unload terminates on the previous document in the same browsing context. If there is no previous document, this value will be the same as PerformanceTiming.fetchStart. Both PerformanceTiming.navigationStart and also the PerformanceTiming.fetchStart are a read-only PROPERTIES.



Discussion

No Comment Found

Related InterviewSolutions