Created
May 15, 2013 22:23
-
-
Save powerc9000/5587916 to your computer and use it in GitHub Desktop.
async example
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
//Just proving it is async | |
setTimeout(function(){ | |
console.log("hello world"); | |
},1000); | |
for(var i=0; i<10; i++){ | |
console.log(i); | |
} | |
//Will print | |
//0 | |
//1 | |
//2 | |
//3 | |
//4 | |
//5 | |
//6 | |
//7 | |
//8 | |
//9 | |
//hello world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment