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
πŸ’¬ Discuss
βœ… Correct Answer: (D) To cache the reference document.location
Explanation: The locally scoped variables are created to cache the reference to document.location.
Explanation by: Mr. Dubey
The locally scoped variables are created to cache the reference to document.location.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
202
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
99%
Success Rate