Every callback printed the same number
A loop creates several callbacks, each intended to print its own index. When they run, they all print the final value.
What happened?
A loop creates several callbacks, each intended to print its own index. When they run, they all print the final value.
What happened?