reverse - Reverse the order of elements in an Array in JavaScript

Example : Reverse the order of elements in an Array
<script type="text/javascript">
var x = new Array(2,3,4);
x.reverse();
document.write(x);
</script>