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
trueonly if the entries are different... Thena != bis equivalent toa xor bfor boolean values...– fernandosavio
I managed to solve, thanks Fernando! solution: Function xor(a,b){ Return a != b; }
– Aline