Last active
August 24, 2022 09:40
-
-
Save wbarcovsky/d848e6e3cee57455f045f222b00e1441 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(); | |
| }); | |
| console.log('end script'); | |
| p.then(function() { | |
| console.log('resolve promise'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment