var max = 10, x = {vs:') versus '}; for (var i=0; i<max; i++) { console.log('i: ', i); setTimeout((function(number) { console.log('i(' + i + this.vs + number); }).bind(x), (i * 500), i); }