MCPcopy Create free account
hub / github.com/codemistic/Web-Development / letterArrayReturn

Function letterArrayReturn

Hangman-Game/script.js:22–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21// Functions
22function 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
28function displayWords(){
29 word.innerHTML=``;

Callers 1

script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected