var c= [0,1,2,3,4,5,6,7,8,9]; var c2 = []; for (var i = c.length-1;i>=0; i--) {c2.push(c[i]);} alert(c2)