Created
September 7, 2023 16:13
-
-
Save ericmp33/5aadc23216ad358e872540eca18f7da4 to your computer and use it in GitHub Desktop.
Wait 5 seconds in JS
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
new Promise(resolve => setTimeout(resolve, 5000)).then(() => { | |
console.log('hi') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment