MCPcopy 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
45function updateTime() {
46 time--;
47 timeEl.innerHTML = time + "s";
48 if (time === 0) {
49 clearInterval(timeInterval);
50 gameOver();
51 }
52}
53//game over
54function gameOver() {
55 endgameEl.innerHTML = `

Callers 1

script.jsFile · 0.85

Calls 1

gameOverFunction · 0.85

Tested by

no test coverage detected