What value is obtained when executing the following code?
let b = 0;
for (let i = 0; i <= 2; i++) {
b += i;
}
console.log(b);
What value is obtained when executing the following code?
let b = 0;
for (let i = 0; i <= 2; i++) {
b += i;
}
console.log(b);