Answers for "javascript random word from list"

1

how to make javascript progarm that randomly displayes a word

//get random value from array
var colors = ["red","blue","green","yellow"];
var randColor = colors[Math.floor(Math.random() * colors.length)];
Posted by: Guest on November-04-2020

Code answers related to "javascript random word from list"

Code answers related to "Javascript"

Browse Popular Code Answers by Language