Mosh Javascript Course Free [verified]
“Closures capture , not values. Always know your scope when working with async code.”
// 3. .bind() method for (var i = 0; i < 3; i++) { setTimeout(console.log.bind(console, i), 100); } mosh javascript course free