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

Function reset

Scorekeeper/app.js:48–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46Reset.addEventListener('click', reset)
47
48function reset() {
49 GameOver = false;
50 P1Score = 0;
51 P2Score = 0;
52 P1Display.textContent = 0;
53 P2Display.textContent = 0;
54 P1Button.disabled=false;
55 P2Button.disabled=false;
56 P1Display.classList.remove('has-text-success', 'has-text-danger');
57 P2Display.classList.remove('has-text-success', 'has-text-danger');
58}

Callers 1

app.jsFile · 0.70

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected