for (var i = 0; i < 3; i++) {
setTimeout(() => console.log(i), i * 1000);
}
Options : -
A) 0, 1, 2
B) 1, 2, 3
C) 0, 0, 0
D) 3, 3, 3
Comment with correct answer.
for (var i = 0; i < 3; i++) {
setTimeout(() => console.log(i), i * 1000);
}
Options : -
A) 0, 1, 2
B) 1, 2, 3
C) 0, 0, 0
D) 3, 3, 3
Comment with correct answer.
For further actions, you may consider blocking this person and/or reporting abuse
Anita Olsen -
Matt Brailsford -
Pratham Dupare -
Ankur Tyagi -
Latest comments (0)