Last active
November 16, 2021 01:08
-
-
Save rehasantiago/5adb1711ef68a62f2af0efbb163ff04b to your computer and use it in GitHub Desktop.
https://readosapien.com/queues-in-node-js/- queues in node js
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"); | |
setTimeout(() => console.log("2"),0); | |
var promise = new Promise(function(resolve, reject) { | |
resolve(); | |
}); | |
promise.then(function(resolve) { | |
console.log('3'); | |
}) | |
.then(function(resolve) { | |
console.log('4'); | |
}); | |
console.log("5"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment