Reverse array with reverse
var oldArray = [1,2,3,4,5]; var newArray = oldArray.reverse(); console.log(newArray); // returns 5,4,3,2,1