for
Ver originalvar funcs = [];for (var i = 0; i < 3; funcs.push(function(){console.log(i)}), i++); for (var i in funcs) { funcs[i]();}