We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba34b8b commit a9b692eCopy full SHA for a9b692e
script.js
@@ -30,6 +30,7 @@ document.addEventListener("DOMContentLoaded", function() {
30
quitBtn.addEventListener("click", quitGame);
31
32
function startGame() {
33
+ clearInterval(gameInterval);
34
resetGame();
35
interfaceDiv.style.display = "none";
36
gameContainer.style.display = "block";
@@ -40,7 +41,6 @@ document.addEventListener("DOMContentLoaded", function() {
40
41
}
42
43
function endGame() {
- clearInterval(gameInterval);
44
gameContainer.style.display = "none";
45
finalScore.textContent = score;
46
endScreen.classList.remove("hidden");
0 commit comments