const arr = [1, 4, 42, 15, 3, 7, 9, 32, 30] let sum = 0 for(let i = 0; i < arr.length; i++) { sum = sum + arr[i] } console.log(sum)