Code QuizAdvanced
Loop Variable Closure Bug
A classic var-in-a-loop closure mistake that logs the wrong values inside setTimeout.
What is the bug that prevents this from logging Task 1, Task 2, Task 3?
A classic var-in-a-loop closure mistake that logs the wrong values inside setTimeout.
What is the bug that prevents this from logging Task 1, Task 2, Task 3?