JavaScript Tutorial/Array/Reverse

Материал из Web эксперт
Перейти к: навигация, поиск

Array.reverse()

The reverse() method reverses the order of the elements in the array according to the array index numbers.



   <source lang="javascript">

<html>

   <script language="JavaScript">
   
   </script>

</html></source>


Reverse the elements in an Array

   <source lang="javascript">

<html> <head> <title>Reverse an Array</title> <script language="javascript" type="text/javascript">

</script> </head> <body> </body> </html></source>