DEV Community

Discussion on: For Loop in different programming languages

Collapse
 
hjfitz profile image
Harry • Edited

Note: forEach(console.log) will print the item, index and the array - developer.mozilla.org/en-US/docs/W...

Array#forEach((item, index, array) => { /*...*/ })