Practice
Learn
← Quit
0 / 0 correct
JS / TypeScript
Medium
1 of 40
What does this log?
for (var i = 0; i < 3; i++) { setTimeout(() => console.log(i), 0); }
A
0 1 2
B
2 2 2
C
undefined three times
D
3 3 3