re: What’s your favorite JS interview question? VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

for (var i=0; i<10; i++) {
setTimeout(function() { console.log(i++ - 10); }, 1000);
}

code of conduct - report abuse