added a click event for the 'wrong' button to replace the displayed word
This commit is contained in:
1 parent
e3c377d547
commit
80a98ac094
1 file changed
+5
@@ -36,3 +36,8 @@ 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