var myArray = ( "Apples", "Bananas", "Pears" ); var randomItem = myArray(Math.floor(Math.random()*myArray.length));
Oglejte si Pen gLJPZv Chrisa Coyierja (@chriscoyier) na CodePen.
var myArray = ( "Apples", "Bananas", "Pears" ); var randomItem = myArray(Math.floor(Math.random()*myArray.length));
Oglejte si Pen gLJPZv Chrisa Coyierja (@chriscoyier) na CodePen.