Beginner
Sum of Array Elements
Calculate the total sum of all numbers in a list.
📝 محتوى الأمر
Write a function that accepts an array of numbers and returns the sum of all the elements in the array. If the array is empty, the function should return 0.