diff --git a/text-reverse.js b/text-reverse.js index 4da12bf..d744249 100644 --- a/text-reverse.js +++ b/text-reverse.js @@ -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 = ""; @@ -97,4 +97,4 @@ input.addEventListener("keydown", function(event) { if (event.key === "Enter") { correctWord(); } -}); +}); \ No newline at end of file