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”.