how to make javascript progarm that randomly displayes a word code example
Example: 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)];