Created
October 20, 2018 02:40
-
-
Save rpf5573/e1cf30e2c75fc8965730f72212a4f840 to your computer and use it in GitHub Desktop.
cb order
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
//index.js | |
setTimeout(function(){ | |
console.log("Timeout"); | |
}, 0); | |
setImmediate(function(){ | |
console.log("Immediate"); | |
}); | |
// output | |
// Timeout | |
// Immediate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment