Created
May 26, 2012 09:58
-
-
Save corpix/2793190 to your computer and use it in GitHub Desktop.
test.loops.sync
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 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