JavaScript Reference/Javascript Methods/reverse
Версия от 18:30, 25 мая 2010; (обсуждение)
"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()