change finish screen message

This commit is contained in:
Akbar Rahman 2021-04-11 16:51:21 +01:00
parent dcbcf39b97
commit bac7417bb7

View File

@ -83,10 +83,11 @@ function updateState() {
state.answer = countries[newQuestion].capital; state.answer = countries[newQuestion].capital;
} }
// update HTML elements to reflect values of state
function updateScreen(){ function updateScreen(){
scoreHTML.innerHTML = state.score + "/" + state.maxScore; scoreHTML.innerHTML = state.score + "/" + state.maxScore;
if (state.finishedGame) { 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"; answers.style.display = "none";
return; return;
} }