0
function xor(true,false){
return (true && false) && (false &&true) !(true && true) && (false && false);
}
0
function xor(true,false){
return (true && false) && (false &&true) !(true && true) && (false && false);
}
Browser other questions tagged javascript
You are not signed in. Login or sign up in order to post.
Aline, the XOR returns
true
only if the entries are different... Thena != b
is equivalent toa xor b
for boolean values...– fernandosavio
I managed to solve, thanks Fernando! solution: Function xor(a,b){ Return a != b; }
– Aline