What value is printed when executing the following code?
let a = 0;
while (a < 4) {
a++;
if (a === 2) {
break;
}
}
console.log(a);
What value is printed when executing the following code?
let a = 0;
while (a < 4) {
a++;
if (a === 2) {
break;
}
}
console.log(a);