how to reverse loop in javascript

JavaScript
const array = [6,7,8,9,10];
for (const number of array.reverse()) {
    console.log(number);
}
Source

Also in JavaScript: