Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Web-Development
/ updateTime
Function
updateTime
typing-game/script.js:45–52 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
43
44
//update time
45
function
updateTime() {
46
time--;
47
timeEl.innerHTML = time +
"s"
;
48
if
(time === 0) {
49
clearInterval(timeInterval);
50
gameOver();
51
}
52
}
53
//game over
54
function
gameOver() {
55
endgameEl.innerHTML = `
Callers
1
script.js
File · 0.85
Calls
1
gameOver
Function · 0.85
Tested by
no test coverage detected