Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Javascript Reverse

const friends = ["Abir", "Ashik", "Alif", "Alfi", "Shafi", "Kafi"];
const friendsReverse = friends.reverse();
console.log(friendsReverse);
//Output:[ 'Kafi', 'Shafi', 'Alfi', 'Alif', 'Ashik', 'Abir' ]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Javascript #Reverse
ADD COMMENT
Topic
Name
5+3 =