how to loop through array of numbers in javascript

Solutions on MaxInterview for how to loop through array of numbers in javascript by the best coders in the world

showing results for - "how to loop through array of numbers in javascript"
Eric
24 Oct 2016
1let numbers = [1,2,3,4,5];
2let numbersLength = numbers.length;
3for ( let i = 0; i < numbersLength; i++) {
4    console.log (numbers[i]);
5}