Skip to content

Instantly share code, notes, and snippets.

@powerc9000
Created May 15, 2013 22:23
Show Gist options
  • Save powerc9000/5587916 to your computer and use it in GitHub Desktop.
Save powerc9000/5587916 to your computer and use it in GitHub Desktop.
async example
//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