Skip to content

Instantly share code, notes, and snippets.

@corpix
Created May 26, 2012 09:58
Show Gist options
  • Save corpix/2793190 to your computer and use it in GitHub Desktop.
Save corpix/2793190 to your computer and use it in GitHub Desktop.
test.loops.sync
var i = 0;
console.log('Setting timeout');
setTimeout(function(){
console.log('Timeout callback raised');
}, 500);
console.log('Beginning of the loop')
while(true){
i++;
if(i > 9999999999)
break;
}
console.log('Loop finished');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment