JS pętla tablica wstecz
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))
int myArray[]={1,2,3,4,5,6,7,8};
for(int counter=myArray.length; counter > 0;counter--){
System.out.println(myArray[counter]);
}
var arr = [1, 2, 3, 4, 5];
arr.slice().reverse()
.forEach(function(item) {
console.log(item);
});