reverse < Array < JavaScript
The reverse() method of an array reverses the order of elements in an array.
const numbers = ['one', 'two', 'three'];
const NumbersReversed = numbers.reverse();
console.log(NumbersReversed);
// ["three", "two", "one"]
// reverse changes the original array
console.log(numbers);
// ["three", "two", "one"]