1.

How many properties are there in window.performance object?(a) 1(b) 4(c) 2(d) 3The question was asked during an interview for a job.This is a very interesting question from Integrating the Performance Object with perfLogger in chapter Invocation and Performance Navigation of JavaScript

Answer»

The CORRECT CHOICE is (c) 2

Easy explanation: The Window interface’s performance property returns a Performance OBJECT, which can be used to gather performance INFORMATION about the current document. There are totally 2 properties associated with the window.performance and they are:

navigation

type.



Discussion

No Comment Found

Related InterviewSolutions