What value is obtained when executing the following code?
let sumTotal = 0;
for (let i = 1; i < 5; i++) {
if (i % 3 === 0) {
sumTotal += i;
}
}
console.log(sumTotal);
What value is obtained when executing the following code?
let sumTotal = 0;
for (let i = 1; i < 5; i++) {
if (i % 3 === 0) {
sumTotal += i;
}
}
console.log(sumTotal);