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