Last active
August 11, 2022 06:35
-
-
Save wbarcovsky/5e310c2307948097865fa1775a968db3 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