What will happen if you reference document.location from within an object?
What will happen if you reference document.location from within an object? Correct Answer Traverses the stack
window.location.href returns the href (URL) of the current page. 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 gets the location value.