Reverse Arrays with reverse


You can use the reverse method to reverse the elements of an array.

reverse is another array method that alters the array in place, but it also returns the reversed array.

var myArray = [1, 2, 3];
myArray.reverse();

returns [3, 2, 1]

Use reverse to reverse the array variable and assign it to newArray.

Get a hint