var myArray = ( "Apples", "Bananas", "Pears" ); var randomItem = myArray(Math.floor(Math.random()*myArray.length));
Vedeți Pen gLJPZv de Chris Coyier (@chriscoyier) pe CodePen.
var myArray = ( "Apples", "Bananas", "Pears" ); var randomItem = myArray(Math.floor(Math.random()*myArray.length));
Vedeți Pen gLJPZv de Chris Coyier (@chriscoyier) pe CodePen.