-
-
Save eskim/0e9053b9c571619da68c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 res = null; | |
for(var i = 0 ; i<2; i++){ | |
res = new Date().getTime(); | |
console.log('-', res); | |
(function(x){ | |
setTimeout(function(){ | |
console.log('--', x); | |
}, 500); | |
})(res); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment