From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Array Object
The reverse() method is used to reverse the order of the elements in an array.
| arrayObject.reverse() |
Note: The reverse() method changes the original array.
ExampleIn this example we will create an array, and then reverse the order of it:
The output of the code above will be:
Try it yourself » |
JavaScript Array Object
From http://www.w3schools.com (Copyright Refsnes Data)