// reverse massive var arr = [1, 2, 3, 4, 5]; console.log(arr); // [1, 2, 3, 4, 5] console.log(arr.reverse()); // [ 5, 4, 3, 2, 1 ]