Created
September 3, 2015 03:09
-
-
Save tycoi2005/47bb220da9b9dcb33015 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
function doy(x){ | |
return function(){ | |
console.log("start " + x); | |
//sleep(2); | |
console.log("end " + x); | |
} | |
} | |
doy("1")(); | |
setTimeout(doy("2"),100); | |
setTimeout(doy("3"),0); | |
setTimeout(doy("4"),100); | |
doy("5")(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment