What value is printed when executing the following code?
let c = 2, d = 4;
if ((c * 2 === d) && (c + d === 6 || c - d === -2)) {
d = 2;
}
console.log(d);
What value is printed when executing the following code?
let c = 2, d = 4;
if ((c * 2 === d) && (c + d === 6 || c - d === -2)) {
d = 2;
}
console.log(d);