Run ❯
Get your
own
website
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript Arrays
The forEach() Method
forEach() calls a function for each element in an array:
Compute the sum of the values in an array: