Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript array random selector

let index=Math.floor(Math.random()*quotes.length);
<!--This will give a random quote-->
quotes[index];
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #javascript #array #random #selector
ADD COMMENT
Topic
Name
3+3 =