tell user what the word was if they do not guess the word

This commit is contained in:
Akbar Rahman 2022-02-04 14:51:52 +00:00
parent 16019e8d5b
commit 32e976a021
Signed by: alvierahman90
GPG Key ID: 20609519444A1269

View File

@ -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 <br>(the word was ${word})`
endScreenImage.src = "rusty_medal.svg"
}