Last active
November 21, 2022 22:41
-
-
Save vilmid/ab4552a8cad9e8e36a21ba1e21aec8eb 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
| const sleep = async (ms) => await new Promise(resolve => setTimeout(resolve, ms)) | |
| (async () => { | |
| console.log('Hello,') | |
| await sleep(3000) | |
| console.log('world!') | |
| })() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment