Execute a callback function for every element in an array.
List to iterate through
Callback (It is passed each item of nodeList and its index)
forEach(arr, function (item, idx) { ... }); Copy
forEach(arr, function (item, idx) { ... });
forEach
Execute a callback function for every element in an array.