0 points

JavaScript forEach – How to Loop Through an Array in JS


dashboard

Fri Nov 13 2020 21:49:29 GMT+0000 (UTC)

Posted by @mvieira #javascript

numbers.forEach(function(number) {
    console.log(number);
});

numbers.forEach(function() {
    // code
});
content_copy Copy

https://www.freecodecamp.org/news/javascript-foreach-how-to-loop-through-an-array-in-js/