var myArray = ( "Apples", "Bananas", "Pears" ); var randomItem = myArray(Math.floor(Math.random()*myArray.length));
Zie de Pen gLJPZv door Chris Coyier (@chriscoyier) op CodePen.
var myArray = ( "Apples", "Bananas", "Pears" ); var randomItem = myArray(Math.floor(Math.random()*myArray.length));
Zie de Pen gLJPZv door Chris Coyier (@chriscoyier) op CodePen.