funcs[i] = function(x) }.bind(this, i); code example Example: javascript bind this syntax func.bind(this)