RE: Write a function to reverse a string without using concatenation
1.1 Write a function to reverse a array without using sorting function
Hint : (Use array operations push pop)
Add Comment
1.1 Reverse Code
<script type="text/css"> var numarr = ['1','2','3','4']; var cc = []; for(i=0; i<numarr.length; i++){ cc.unshift(numarr[i]); } console.log(cc); </script>