Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reverse js

// reverse massive
var arr = [1, 2, 3, 4, 5];
console.log(arr); // [1, 2, 3, 4, 5]
console.log(arr.reverse()); // [ 5, 4, 3, 2, 1 ]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reverse #js
ADD COMMENT
Topic
Name
5+9 =