I get a seemingly random number whenever I paste this code:
for (var i = 1; i <= 5; i++) {
setTimeout(function(x) { return function() { console.log(x); }; }(i), 1000*i);
// 1 2 3 4 5
}
into the console in chrome and firefox. 258
in the below picture. What is that number?