Coding Challenge: Sum of Values
Let's take an array of numbers as input and returning the sum of all the numbers.
We'll cover the following...
Problem statement
Write a function that takes as input an array and calculates the sum of its elements. Your function should also handle negative values.
Input
values = [3, 11, 7, 2, 9, 10];
Expected output
42
Coding exercise
Access this course and 1400+ top-rated courses and projects.