Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/asweigart/PythonStdioGames
/ sleep
Function
sleep
javascript_games/deepcave.js:8–10 ·
view source on GitHub ↗
(seconds)
Source
from the content-addressed store, hash-verified
6
'use strict'
;
7
8
function
sleep(seconds) {
9
return
new
Promise(resolve => setTimeout(resolve, seconds * 1000));
10
}
11
12
13
// Set up the constants:
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected