Created
September 7, 2022 00:55
-
-
Save swkim109/8e6d9b62d38117d04c0de61ddac0b57b to your computer and use it in GitHub Desktop.
Timer
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 timer = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); | |
(async () => { | |
await timer(5000); | |
})(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment