arr.reverse()

Let arr = [1, 2, 3, 4, 5];
arr.reverse();

alert( arr ); // 5,4,3,2,1

The method arr.reverse reverses the order of elements in arr.

arr.reverse() — Structure map

Clickable & Draggable!

arr.reverse() — Related pages: