Course contentsShow
JavaScript
Lesson 502 of 2,72313. ClosuresPro lesson

Fixing Loop Closures with Let

Block-scoped let creates a new binding per iteration, so each closure captures its own distinct iteration variable.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.