Q. Why do we need to create locally scoped variables to hold value?
β
Correct Answer: (D)
To cache the reference document.location
Explanation: The locally scoped variables are created to cache the reference to document.location.