var arr1=[1,2,3,4,5]; var L=arr1.length; var arr2=[]; for(var i=L-1; i>=0; i--){ arr2.push(arr1[i]); } alert(arr2);
var arr1=[1,2,3,4,5].reverse(); alert(arr1);