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

Function getRandomWord

typing-game/script.js:29–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27const timeInterval = setInterval(updateTime, 1000);
28//generate random word
29function getRandomWord() {
30 return words[Math.floor(Math.random() * words.length)];
31}
32//add word to dom
33function addWordToDOM() {
34 randomWord = getRandomWord();

Callers 1

addWordToDOMFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected