Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reverse an array in javascript

const reverseArray = (arr)=>{
   for (let v = arr.length ; v > 0 ; v--) {
       
    return arr[v];
       
   }
}

//if you find this answer is useful ,
//upvote ⇑⇑ , so can the others benefit also . @mohammad alshraideh ( ͡~ ͜ʖ ͡°)
Source by apidock.com #
 
PREVIOUS NEXT
Tagged: #reverse #array #javascript
ADD COMMENT
Topic
Name
2+3 =