Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reverse array

//The reverse() method reverses the elements in an array.
const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.reverse();

//output >> ["Mango", "Apple", "Orange", "Banana"]

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