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
This question was addressed to me during an online exam.
My enquiry is from Cache Variables and Properties across Scope topic in chapter Caching, Debugging and Animation of JavaScript
Select the correct answer from above options
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)