MCPcopy Create free account
hub / github.com/codemistic/Web-Development / updateScore

Function updateScore

JS - Chrome Dino Game Clone/script.js:57–60  ·  view source on GitHub ↗
(delta)

Source from the content-addressed store, hash-verified

55}
56
57function updateScore(delta) {
58 score += delta * 0.01
59 scoreElem.textContent = Math.floor(score)
60}
61
62function handleStart() {
63 lastTime = null

Callers 1

updateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected