Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

loop array backwards javascript

var arr = [1, 2, 3];

arr.slice().reverse().forEach(function(x) {
    console.log(x);
})
Source by duckduckgo.com #
 
PREVIOUS NEXT
Tagged: #loop #array #javascript
ADD COMMENT
Topic
Name
5+5 =