callback function syntax using forEach iterator method
Tue Aug 13 2024 20:05:41 GMT+0000 (Coordinated Universal Time)
Saved by @thecowsays #javascript
forEach method takes a callback function for the argument, but will only ever return 'undefined' itself. Used here with an anonymous function via ES6 arrow function syntax.
www.codecademy.com
Comments