()
| 20 | |
| 21 | // Functions |
| 22 | function letterArrayReturn(){ |
| 23 | let randomNumber=Math.floor(Math.random()*wordsArray.length); |
| 24 | let randomWord=wordsArray[randomNumber]; |
| 25 | return randomWord.split(''); // This splits every character of the String and makes a new Array |
| 26 | } |
| 27 | |
| 28 | function displayWords(){ |
| 29 | word.innerHTML=``; |