MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / resetHighScore

Function resetHighScore

assets/js/molegame.js:12–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11
12function resetHighScore() {
13 localStorage.removeItem('highscore');
14 hscore = 0;
15 highscore.textContent = hscore;
16}
17
18function randomTime(min, max) { //in milliseconds
19 return Math.random() * (max - min) + min;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected