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