for (var i = 0; i < 10; i++) {

setTimeout(function() {

console.log(i);

}, 100);

}




Str (IT-Community) | #Задачка