Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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)];
 
PREVIOUS NEXT
Tagged: #javascript #progarm #randomly #displayes #word
ADD COMMENT
Topic
Name
9+6 =