Reverse the elements in an Array : Reverse : Array JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Array » Reverse »

 

Reverse the elements in an Array

















<html>
<head>
<title>Reverse an Array</title>

<script language="javascript" type="text/javascript">
<!--

var x = new Array(2,3,4);
x.reverse();
alert(x);

//-->
</script>

</head>
<body>

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Array
» Reverse