non-blocking code
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