let fruits = ["Apple", "Banana", "Mango", "Orange"]; // array
let index = Math.floor(Math.random() * fruits.length); // random index
console.log(fruits[index]); // result
let index=Math.floor(Math.random()*quotes.length);
<!--This will give a random quote-->
quotes[index];