Skip to content

Commit

Permalink
maj
Browse files Browse the repository at this point in the history
  • Loading branch information
Vital-Vuillaume committed Aug 17, 2024
1 parent 0cd67ff commit 87f672b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions text-reverse.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function reverseWord(word) {
}

function correctWord() {
if (input.value === word) {
if (input.value.toLowerCase() === word) {
score++;
scoreTxt.textContent = "Score: " + score;
input.value = "";
Expand All @@ -97,4 +97,4 @@ input.addEventListener("keydown", function(event) {
if (event.key === "Enter") {
correctWord();
}
});
});

0 comments on commit 87f672b

Please sign in to comment.