I have an array
var array = ["what","is","going","on"];
I know it's possible to access and list these elements with a standard for loop like so:
for (i = 0; i <= array.length; i++) {
console.log(array[i]);
}
But I want to know if there's a way to list these elements in a random order. I suspect that I have to use some variation of Math. but I don't have enough experience to decide which to use for sure. Thanks in advance!