Last active
January 27, 2023 09:25
-
-
Save wbarcovsky/b8de3ac99e2fbf16c65ea8cbee5060c7 to your computer and use it in GitHub Desktop.
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(function timeout() { | |
| console.log('timeout'); | |
| }, 0); | |
| let p = new Promise(function(resolve, reject) { | |
| console.log('create promise'); | |
| resolve(); | |
| }); | |
| p.then(function() { | |
| console.log('resolve promise'); | |
| }); | |
| console.log('end script'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment