diff --git a/words.js b/words.js index 508d5431b717776235407d2aafc3e9373b736c3e..aa7a747c9fe8270d2fb50fd5e8fc8003c3ebb489 100644 --- a/words.js +++ b/words.js @@ -104,10 +104,10 @@ function printRandomGreetings() { pronunciationChoice.classList.add("call_to-btn"); pronunciationChoice.addEventListener("click", function () { if (index === correctChoice) { - alert("That's correct!"); + window.alert("That's correct!"); } else { const wordToSpeak = greetingsName; - alert("That's incorrect."); + window.alert("That's incorrect."); speakWord(wordToSpeak); } document.getElementById("nextButton").style.display = "block";