diff --git a/script.js b/script.js index e841ad6..c27d774 100644 --- a/script.js +++ b/script.js @@ -67,9 +67,15 @@ function update(x) { else { word += x.toLowerCase(); free = free_box.map(num=>{return String(num)}).join(""); - console.log(free); document.getElementById(free).innerHTML = x; free_box[1]+=1; + if (word.length == 5){ + if(arrWords.includes(word)){ + } + else { + document.getElementById("info").innerHTML="NOT A WORD"; + } + } } }