Frontend
Interviews
.dev
Problems
629. let in Loop with setTimeout
Easy
•
...
Predict the output order.
for
(
let
i
=
0
;
i
<
3
;
i
++
)
{
setTimeout
(
(
)
=>
console
.
log
(
i
)
,
0
)
}
What is the correct output/behavior?
3 3 3
0 1 2
2 2 2
1 2 3
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer