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