JavaScript Reference/Javascript Methods/reverse
"reverse()" Example
<html>
<body>
<button onclick="var myA = new Array(10,11,12); myA.reverse();
alert(myA);">REVERSE</button>
</body>
</html>
"reverse()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Array |
+----------------+--------------------------------------------------------------+
"reverse()" Syntax, Parameters and Note
Note:
Reverses the order of the elements in an array.
Syntax:
arrayName.reverse()