Why do we need to create locally scoped variables to hold value?

Why do we need to create locally scoped variables to hold value? Correct Answer To cache the reference document.location

window.location.assign loads a new document. The locally scoped variables are created to cache the reference to document.location.

Related Questions

What is the name of locally invented chicken layer?
Locally malignant tumors are
Locally malignant tumours are
Locally malignant conditions are
Maria needs to install software on a Windows NT Server computer which is a backup domain controller. When she attempts to log on to the server, she receives the message "Unable to log on locally". What must you do to enable Maria to log on to the server?