Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Why do we need to create locally scoped variables to hold value?

  2. A.

     To optimize the testing process

    B.

     To increase the speed

    C.

     To minimize memory usage

    D.

     To cache the reference document.location

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    The locally scoped variables are created to cache the reference to document.location.


Be The First To Comment