var myArray = ( "Apples", "Bananas", "Pears" ); var randomItem = myArray(Math.floor(Math.random()*myArray.length));
Lihat Pen gLJPZv oleh Chris Coyier (@chriscoyier) di CodePen.
var myArray = ( "Apples", "Bananas", "Pears" ); var randomItem = myArray(Math.floor(Math.random()*myArray.length));
Lihat Pen gLJPZv oleh Chris Coyier (@chriscoyier) di CodePen.