Sample Question
Analyze this loop code: for (var i = 0; i < 3; i++) { setTimeout(() => console.log(i), 100); }. The developer expects output 0, 1, 2 but sees 3, 3, 3. What is the fix?
Language: English
Questions: 15
Sign Up Free
Live Support
Please Wait...
upgrade
Please upgrade to Premium plan to access quizzes
(or explore our library of free quiz templates)
Upgrade