Created
May 18, 2017 13:32
-
-
Save lenafaure/f56330d769c1dd4f506b9e0e43b1ecc0 to your computer and use it in GitHub Desktop.
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
for (var i = 0; i < 10; i++) { | |
(function (j) { | |
setTimeout(function() { | |
console.log(j); | |
}, j*1000); | |
})(i); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment