Vidyalelo
JavaScript · Q8

Caching And Debugging

Programming · JavaScript · question 8

Q8

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

A.
Window
B.
Function
Answer
C.
Document
D.
Location

Answer: Option B

Solution

Answer: Option B
Solution:
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.