Discussion Forum : Caching And Debugging
Question - Why do we need to create locally scoped variables to hold value?
Options:
A .  To optimize the testing process
B .  To increase the speed
C .  To minimize memory usage
D .  To cache the reference document.location
Answer: Option D
The locally scoped variables are created to cache the reference to document.location.

Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *