-
-
Save wvxavier/6ac6184842292076210fb6ce845600b3 to your computer and use it in GitHub Desktop.
non-blocking code
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
console.log('1.Starting up') | |
setTimeout(() => { | |
console.log('2.Two seconds!') | |
}, 2000) | |
setTimeout(() => { | |
console.log('3.Zero seconds!') | |
}, 0) | |
console.log('4.Finishing up') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment