From c02d2d0a9c9edc368d170de42baa682f5cc099a4 Mon Sep 17 00:00:00 2001 From: Arxify R <69035413+ArxifyByte@users.noreply.github.com> Date: Fri, 17 Feb 2023 00:53:19 +0100 Subject: [PATCH] Update script.js --- Day #13 - Translator App/js/script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Day #13 - Translator App/js/script.js b/Day #13 - Translator App/js/script.js index 4be75ed..0f46ccf 100644 --- a/Day #13 - Translator App/js/script.js +++ b/Day #13 - Translator App/js/script.js @@ -1,6 +1,6 @@ const fromText = document.querySelector(".from-text"); const toText = document.querySelector(".to-text"); -const exchageIcon = document.querySelector(".exchange"); +const exchangeIcon = document.querySelector(".exchange"); const selectTag = document.querySelectorAll("select"); const icons = document.querySelectorAll(".row i"); const translateBtn = document.querySelector("button"); @@ -13,7 +13,7 @@ selectTag.forEach((tag, id) => { } }); -exchageIcon.addEventListener("click", () => { +exchangeIcon.addEventListener("click", () => { let tempText = fromText.value, tempLang = selectTag[0].value; fromText.value = toText.value; @@ -67,4 +67,4 @@ icons.forEach(icon => { speechSynthesis.speak(utterance); } }); -}); \ No newline at end of file +});