Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/asweigart/PythonStdioGames
/ sleep
Function
sleep
javascript_games/dna.js:11–13 ·
view source on GitHub ↗
(seconds)
Source
from the content-addressed store, hash-verified
9
'use strict'
;
10
11
function
sleep(seconds) {
12
return
new
Promise(resolve => setTimeout(resolve, seconds * 1000));
13
}
14
15
const
PAUSE = 0.15
// (!) Try changing this to 0.5 or 0.0.
16
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected