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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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}