Created
December 19, 2019 02:51
-
-
Save bongkook/709e41d8c4ae685320d3c10bd4640e50 to your computer and use it in GitHub Desktop.
This file contains 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 = msec => new Promise(resolve => setTimeout(resolve, msec)); | |
(async () => { | |
console.log('スタート'); | |
await sleep(1000); | |
console.log('1秒経ってる!') | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment