0
Question (probably simple one)
I am trying to understand why this code returns the value of â333â instead of â012â: for (var i=0; i<3; i++) { setTimeout(function() {document.write(i) }, 100);}
2 Answers
+ 1
Its becoz of asynchronous programming that is inbuilt by javascript
+ 1
U can search in youtube to find becoz it is difficult to explain with words đđđ