diff --git a/wally/app.js b/wally/app.js index 28e9d38..008d5df 100644 --- a/wally/app.js +++ b/wally/app.js @@ -35,4 +35,9 @@ function increaseScore() { document.querySelector('.correct').addEventListener("click", () => { increaseScore(); replaceWord(); +}); + +// click event for the red wrong button, replaces the word displayed with a new one +document.querySelector('.wrong').addEventListener("click", () => { + replaceWord(); }); \ No newline at end of file