Help for this page
for (var i = 0; i < some_array.length; i++) { // Declaring this in the loop creates a one variable for ... }); } // All closures now point at the last element.
for (var i = 0; i < some_array.length; i++) { // Declaring this in the loop creates a one variable for ... return x; }); } // now works as expected