JS Loop Array para trás
let arr = [1, 2, 3];
arr.slice().reverse().forEach(x => console.log(x))
Friendly Hawk
let arr = [1, 2, 3];
arr.slice().reverse().forEach(x => console.log(x))
var arr = [1, 2, 3, 4, 5];
for (var i = arr.length - 1; i >= 0; i--) {
arr[i]
}
var arr = [34, 234, 567, 4];
print(arr);
var new_arr = arr.reverse();
print(new_arr);
var arr = [1,2,3,4];
arr.reverse();
console.log(arr);
const array1 = ['one', 'two', 'three'];
console.log('array1:', array1);
//["one", "two", "three"]
const reversed = array1.reverse();
console.log('reversed:', reversed);
//["three", "two", "one"]
// Careful: reverse is destructive -- it changes the original array.
console.log('array1:', array1);
//["three", "two", "one"]
var arr = [1, 2, 3, 4, 5];
arr.reduceRight((_, item) => console.log(item), null);