Vidyalelo
JavaScript · Q1

Caching And Debugging

Programming · JavaScript · question 1

Q1

What does the interpreter do when you reference variables in other scopes?

A.
Traverses the queue
B.
Traverses the stack
Answer
C.
Finds the bugs
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
Normally when you reference variables in other scopes— at the global level, in other namespaces, and so on—the interpreter needs to traverse the stack to get to the variable.