Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reverse array js

var arr = ["f", "o", "o", "b", "a", "r"]; 
arr.reverse();
console.log(arr); // ["r", "a", "b", "o", "o", "f"]
Source by www.techiedelight.com #
 
PREVIOUS NEXT
Tagged: #reverse #array #js
ADD COMMENT
Topic
Name
6+5 =