Created
May 15, 2018 15:59
-
-
Save tc/1be88d44a80d0a938e43d21bd9de0031 to your computer and use it in GitHub Desktop.
setTimeout Question
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var i; | |
for (i=0; i<5; i+=1){ | |
setTimeout( | |
function(){ console.log(i); }, | |
100 | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment