var myArray = ( "Apples", "Bananas", "Pears" ); var randomItem = myArray(Math.floor(Math.random()*myArray.length));
Lásd Chris Coyier (@chriscoyier) Pen gLJPZv-jét a CodePen-en.
var myArray = ( "Apples", "Bananas", "Pears" ); var randomItem = myArray(Math.floor(Math.random()*myArray.length));
Lásd Chris Coyier (@chriscoyier) Pen gLJPZv-jét a CodePen-en.