1//get random value from array
2var colors = ["red","blue","green","yellow"];
3var randColor = colors[Math.floor(Math.random() * colors.length)];
41var foodItems = ["Bannana", "Apple", "Orange"];
2var theFood = foodItems[Math.floor(Math.random() * foodItems.length)];
3/* Will pick a random number from the length of the array and will go to the
4corosponding number in the array E.G: 0 = Bannana */1var items = ['Yes', 'No', 'Maybe'];
2var item = items[Math.floor(Math.random() * items.length)];1var colors = ["red","blue","green","yellow"];
2var randomColor = colors[Math.floor(Math.random()*colors.length)]; //pluck a random color
31 const arr = myArray
2 .map((a) => ({sort: Math.random(), value: a}))
3 .sort((a, b) => a.sort - b.sort)
4 .map((a) => a.value)