Fundamentals
Arrays
Data Types
Get the sum of all integers in the given array... and return it.
function getSum(array) {
//your code
}
Test.assertEquals(getSum([5,9,4,1]), 19, "looks like its wrong.");
Test.assertEquals(getSum([4,0,4,50,8]), 66, "looks like its wrong.");
Test.assertEquals(getSum([5,9,4,1,9,1,1,1,4,10]), 45, "looks like its wrong.");