Operator Xor JS
//Javascript xor condition
if ((a && !b) || (!a && b))
{
// code to be exucuted
}
Testy Tarantula
//Javascript xor condition
if ((a && !b) || (!a && b))
{
// code to be exucuted
}
let x1 = true || false && false;
let x2 = (true || false) && false;
let x3 = !false && false;
let x4 = !(false && false);
if (a != b)