This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Using var in loops creates one variable shared by all iterations, causing closures to capture the final loop value.
You've completed the free preview. Subscribe to unlock every lesson in every course.