JavaScript Array reverse

JavaScript Array reverse


JavaScript Array reverse()
In this Tutorial, we will learn about JavaScript Array reverse() method with the help of following below:
In this Tutorial, we will learn about JavaScript Array push() and pop() methods with the help of following below:
The reverse() method reverses array elements order in the array
Syntax
let numList = [1,2,3,4,5,6,7,8,9,10];
Example1- Reverse an array with the help of reverse() method:
Output
Example2- Reverse An Array Fruits with the help of reverse() method:
Output