JavaScript Array reverse()
The reverse() method is used to reverse the order of the elements in an array. It will overwrite the original array.
Syntax:-
Its syntax is:- array.reverse()
Return:-
Its return is:- a new array after it has been reversed.