JavaScript Arrays
The forEach() Method
forEach() calls a function for each element in an array:
Compute the sum of the values in an array: