added a click event for the 'wrong' button to replace the displayed word
This commit is contained in:
@@ -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();
|
||||
});
|
Reference in New Issue
Block a user