MediumApplyJavaScript Fundamentalspredict_output
What output does this produce? ```javascript for (var i = 0; i < 3; i++) { setTimeout(() => console.log(i), 0); } ```
Apply — Tests ability to use knowledge in practical scenarios.
Want to see the correct answer?
Get the answer with a detailed explanation, plus practice 34+ more JavaScript Fundamentals questions with adaptive quizzes and timed interviews.
See the Answer on Guru Sishya →This question is from the JavaScript Fundamentals topic (Programming Languages).