Vidyalelo
JavaScript · Q10

Caching And Debugging

Programming · JavaScript · question 10

Q10

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

A.
Window
B.
Function
C.
Document
D.
None of the mentioned
Answer

Answer: Option D

Solution

Answer: Option D
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 location, it goes no where.