From 2e02583e0327a65020e8a481c564c284a5994983 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Wed, 25 Mar 2020 20:46:59 +0100 Subject: [PATCH] Display score on game over --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index 7dab706..908a44f 100644 --- a/script.js +++ b/script.js @@ -323,7 +323,7 @@ async function startGame(gameID) { function gameOver() { audioEl.pause(); playAudio("assets/gameOver.mp3"); - alert("Game over !!!"); + alert("Game over !!! (Score: " + score + ")"); location.href = "#"; }