The reverse() method reverses the order of the elements in an array.
The reverse() method reverses the order of the elements in an array.
The reverse() method overwrites the original array.
What the reverse method does in array is to change the order of the items in array in a descending order.
For example
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.reverse();
The fruits.reverse(); will return [Mango, Apple, Orange, Banana}
Notice it has been reversed.
The code it written in Javascript.
learn more on reverse method here: brainly.com/question/14500181
#SPJ2