logo
logo

Sum Array

Sum Array

Write a function
sumArray
that takes an array of numbers as input, and returns the sum of all the numbers in the array using the
forEach()
method.
Console
Submit
Solution
00:00