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

Như Quỳnh

New member
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. Nowhere
 
Answer: d
Explanation: window.location.assign loads a new document. 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 nowhere.
This set of JavaScript Questions and Answers for Aptitude test focuses on “Creating a Shared Configuration File using JavaScript”.
 

Tìm kiếm

Back
Top