X326: sumArray

Given an array of integers, return the sum of all values in the array.

Examples:

sumArray({10, 30, 100, 60}) -> 200
sumArray({50, -30, 20, -10, 5}) -> 35

Your Answer:

Feedback

Your feedback will appear here when you check your answer.