What value is printed when executing the following code?
let v1 = 0, v2 = 10;
if (v1 || v2 > 5) {
v1 = 1;
}
console.log(v1);
What value is printed when executing the following code?
let v1 = 0, v2 = 10;
if (v1 || v2 > 5) {
v1 = 1;
}
console.log(v1);