Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/asweigart/PythonStdioGames
/ sleep
Function
sleep
javascript_games/ninetyninebottles2.js:10–12 ·
view source on GitHub ↗
(seconds)
Source
from the content-addressed store, hash-verified
8
'use strict'
;
9
10
function
sleep(seconds) {
11
return
new
Promise(resolve => setTimeout(resolve, seconds * 1000));
12
}
13
14
// Set up the constants:
15
// (!) Try changing both of these to 0 to print all the lyrics at once.
Callers
2
slowPrint
Function · 0.70
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected