/ Published in: JavaScript
There's no logical XOR in Javascript - no a ^^ b. Here's a workaround - note that null, undefined, '', 0 all count as 'false'
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(!a != !b )
(!a != !b )