Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. During the traversing of the stack when you create a locally scoped variable, where does it go after it goes to the namespace?

  2. A.

     Window

    B.

     Function

    C.

     Document

    D.

     Location

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    When you create a locally scoped variable for caching the reference, the traversal reverses in the forward direction and thus, after going to the namespace, it goes to the function.


Be The First To Comment