1 const arr = ["Hello", "World", "!"];
2 let index = Math.floor(Math.random() * arr.length);
3 arr[index] // random element
1 const arr = ["Hello", "World", "!"];
2 let index = Math.floor(Math.random() * arr.length);
3 arr[index] // random element