Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What is the result when the showPerformanceMetrics() is called before loading the remote script?

  2. A.

     Throws an exception

    B.

     Throws an error

    C.

     It will load by itself

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    If you try to make the call to perfLogger.showPerformanceMetrics() and the script hasn’t just loaded but also executed, then you will get an error.


Be The First To Comment