Answers for "for (var i = 0; i < 10; i++) { setTimeout(function () { console.log(i) }, 10) } What"

0

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

for (let i=0; i < 10; i++) { setTimeout(()=>{ console.log(i); }, 10); }
Posted by: Guest on May-27-2021
0

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

for(var i=0; i<10;i++)
{
((x)=>{setTimeout(function(){console.log(x);},x*1000);
})(i);
}
Posted by: Guest on April-06-2021
-1

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

for (var i = 0; i < 10; i++) {
setTimeout(
(function (i) {
console.log(i)
})(i),
10
)
}
Posted by: Guest on December-11-2020

Code answers related to "for (var i = 0; i < 10; i++) { setTimeout(function () { console.log(i) }, 10) } What"

Code answers related to "Javascript"

Browse Popular Code Answers by Language