From bac7417bb78ce53d72c7ec903b73cea8684f429b Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Sun, 11 Apr 2021 16:51:21 +0100 Subject: [PATCH] change finish screen message --- src/game.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game.js b/src/game.js index 81172ef..813ff7b 100644 --- a/src/game.js +++ b/src/game.js @@ -83,10 +83,11 @@ function updateState() { state.answer = countries[newQuestion].capital; } +// update HTML elements to reflect values of state function updateScreen(){ scoreHTML.innerHTML = state.score + "/" + state.maxScore; if (state.finishedGame) { - questionHTML.innerHTML = "you finishedeededede!!! tap here or press space to restart"; + questionHTML.innerHTML = "woooooooo!! tap here or press enter to restart"; answers.style.display = "none"; return; }