Created
July 23, 2018 17:20
-
-
Save obbaeiei/4539c3b465a8fc6642ea9caf8c8891fc to your computer and use it in GitHub Desktop.
callback hell
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
function main() { | |
console.log(1) | |
setTimeout(()=>{ | |
console.log(2) | |
setTimeout(()=>{ | |
console.log(3) | |
}, 2000) | |
}, 1000) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment