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