const years = [1, 2, 3, 4] let total = 0; for (let i = 0; i < years.length; i++) { total += years[i] } console.log(total) //answer willl be 10