From 32e976a021796201c2683786bfdfaecadc07a274 Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Fri, 4 Feb 2022 14:51:52 +0000 Subject: [PATCH] tell user what the word was if they do not guess the word --- game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.js b/game.js index 2e10863..acbdc28 100644 --- a/game.js +++ b/game.js @@ -177,7 +177,7 @@ function endGame(won) { endScreenMessage.innerHTML = "niceeeeeeeee" endScreenImage.src = "trophy.svg" } else { - endScreenMessage.innerHTML = "damn. better luck nex time" + endScreenMessage.innerHTML = `damn. better luck nex time
(the word was ${word})` endScreenImage.src = "rusty_medal.svg" }