A

Admin • 828.03K Points
Coach

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

  • (A) Traverses the queue
  • (B) Finds the bugs
  • (C) Traverses the stack
  • (D) None of the mentioned
  • Correct Answer - Option(C)
  • Views: 6
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
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.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.