let total = 0;
let list = [23, 109, 2, 9];
for (let f = 0; f < 4; f++) {
  total += list[f];
}
alert("The total is: " + total);  // "The total is: 143"