2023-07-08 01:27:33 +08:00

6 lines
96 B
JavaScript

let total = 0;
for (let i = 0; i < 10; i++) {
total += i;
}
console.log("Total: " + total);