added a click event for the 'wrong' button to replace the displayed word
This commit is contained in:
@@ -36,3 +36,8 @@ document.querySelector('.correct').addEventListener("click", () => {
|
|||||||
increaseScore();
|
increaseScore();
|
||||||
replaceWord();
|
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