can you use a for loop to reverse a number in javascript code example
Example: how to reverse loop in javascript
const array = [6,7,8,9,10];
for (const number of array.reverse()) {
console.log(number);
}
const array = [6,7,8,9,10];
for (const number of array.reverse()) {
console.log(number);
}