Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

random array javascript

const months = ["January", "February", "March", "April", "May", "June", "July"];

const random = Math.floor(Math.random() * months.length);
console.log(random, months[random]);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #random #array #javascript
ADD COMMENT
Topic
Name
7+8 =