ExamVeda
Login
Home
This question belongs to Javascript Caching And Debugging
Caching and Debugging
?

What will happen if you reference document.location from within an object?

Answer & Solution
Correct Answer: Option C
If you reference document.location from within an object, the interpreter will need to go from the function that references the variable, up out of the namespace to the global window scope, down to the document scope, and get the location value.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.