Skip to content
Snippets Groups Projects
Commit e0c8df77 authored by Phoi Luong's avatar Phoi Luong
Browse files

Update words.js

parent 82fa3546
No related branches found
No related tags found
No related merge requests found
...@@ -104,10 +104,10 @@ function printRandomGreetings() { ...@@ -104,10 +104,10 @@ function printRandomGreetings() {
pronunciationChoice.classList.add("call_to-btn"); pronunciationChoice.classList.add("call_to-btn");
pronunciationChoice.addEventListener("click", function () { pronunciationChoice.addEventListener("click", function () {
if (index === correctChoice) { if (index === correctChoice) {
alert("That's correct!"); window.alert("That's correct!");
} else { } else {
const wordToSpeak = greetingsName; const wordToSpeak = greetingsName;
alert("That's incorrect."); window.alert("That's incorrect.");
speakWord(wordToSpeak); speakWord(wordToSpeak);
} }
document.getElementById("nextButton").style.display = "block"; document.getElementById("nextButton").style.display = "block";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment