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