If I have an array;
var array = [item1, item2, item3, item4, item5];
How would I return every item once in order?
I tried the following but that returns the items randomly and it can repeat what it already displayed. But how do I get it so the items are not repeated?
var randomReturn = array[Math.floor(Math.random() * array.length)];