Problem statement: Array reverse The question requires us to write a function that accepts an array as argument and returns a reverse of the array. function reverseArray(a){ let newArray=[]; for(let i=a.length-1;i>=0;i--){ newArray.push(a[i]) } retur...
Markdown supported · ⌘↵ to post
No responses yet.