const list = [12, 5, 80, 34];
let total = 0;
for (let f = 0; f < list.length; f++) {
  total += list[f];
}
alert("The total is: " + total);  // "The total is: 131"