M

Mr. Dubey • 52.74K Points
Coach

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

  • (A) To optimize the testing process
  • (B) To increase the speed
  • (C) To minimize memory usage
  • (D) To cache the reference document.location
  • Correct Answer - Option(D)
  • Views: 107
  • Filed under category JavaScript

Explanation by: Mr. Dubey
The locally scoped variables are created to cache the reference to document.location.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics