Created
October 26, 2024 15:56
-
-
Save Mefistophell/34c33dccf7249c8625224ead10f4a56d to your computer and use it in GitHub Desktop.
Revisions
-
Mefistophell created this gist
Oct 26, 2024 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ const promise = new Promise((resolve, reject) => { console.log(1); setTimeout(() => { console.log("timerStart"); resolve("success"); console.log("timerEnd"); }, 0); console.log(2); }); promise.then((res) => { console.log(7); console.log(res); }); console.log(4);