Answers for "should we use .reverse() or loop in javascript"

2

how to reverse loop in javascript

const array = [6,7,8,9,10];
for (const number of array.reverse()) {
    console.log(number);
}
Posted by: Guest on March-25-2020

Code answers related to "should we use .reverse() or loop in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language