Features
Explore
About
Townie
AI
Docs
Pricing
Log in
Sign up
Log in
Sign up
wait
@ju2l0r
Public
Script
Fork
0 Likes
Code
Pull Requests
Forks
References
Dependencies
Versions
v1
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Sign up with GitHub
wait
Script
v1
Fork
1
2
3
export
async
function
wait
(
ms
)
{
await
new
Promise
(
(
resolve
)
=>
setTimeout
(
resolve
,
ms
)
)
;
}
October 23, 2023
Copy module URL
https://esm.town/v/ju2l0r/wait
Copy script tag
<script type="module" src="https://esm.town/v/ju2l0r/wait" />
Copy embed code
Copy link
Copy Val ID