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