var sumArray = function(arr) { total = 0; for (let i=0; i<arr.length; i++) { total += arr[i]; } return total; };