for loop pushing array items in reverse (decrement)

PHOTO EMBED

Sat Apr 22 2023 03:50:59 GMT+0000 (Coordinated Universal Time)

Saved by @thecowsays #javascript

const chores = ["sweep", "mop", "laundry"];
const priority = [];
for (i = (chores.length - 1); i >= 0; i--) {
  priority.push(chores[i]);
}
console.log(priority);
content_copyCOPY