Created
July 28, 2023 13:32
-
-
Save ehzawad/63b14442bf2da79723f3424974a62484 to your computer and use it in GitHub Desktop.
yay, call stack!
This file contains hidden or 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
| setTimeout(() => console.log(1)); | |
| Promise.resolve().then(() => console.log(2)); | |
| Promise.resolve().then(() => setTimeout(() => console.log(3))); | |
| new Promise(() => console.log(4)); | |
| setTimeout(() => console.log(5)); | |
| console.log(6); |
ehzawad
commented
Jul 31, 2023
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment