tell user what the word was if they do not guess the word
This commit is contained in:
parent
16019e8d5b
commit
32e976a021
2
game.js
2
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 <br>(the word was ${word})`
|
||||
endScreenImage.src = "rusty_medal.svg"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user