Array.reverse unshift — Reverses an array. Description Array.reverse() Return values The reversed array. Examples Example #1 – reverse example Runvar array = [4, 8, 16, 32]; console.log(array); // [4, 8, 16, 32] console.log(array.reverse()); // [32, 16, 8, 4] console.log(array); // [32, 16, 8, 4] External references Mozilla: Array.reverse method