What is the result of the following code?
let p = 1, q = 0; if ((p || q) && p + q === 1) { q = 1; } console.log(q);
0
1
2
3