Trying to iterate through a list of objects, I can't index it, but can use forEach. My issue is I need to start from the last object and go to the first, but unsure how to achieve that with the forEach function. If I used a for loop, it would be like this:
var test = [1,2,3,4,5]
for (let i = test.length; i > -1; i=i-1) {
console.log(test[i])
}
However, due to the limitation of not being able to index, I need assistance. Can you provide guidance?