I'm trying to add up all the numbers in each array and print out the total sum of that array. I'm not sure how to get this code done.
Example:
var myArray = [123, 456, 789]
I want the program to print out 6,15,24.
Since 1+2+3 = 6, 4+5+6=15 and 7+8+9= 24.
How would I go about adding each individual number in that array?