Update xor.md
This commit is contained in:
@ -5,7 +5,7 @@ tags: math,logic,beginner
|
||||
|
||||
Returns `true` if only one of the arguments is `true`, `false` otherwise.
|
||||
|
||||
- Using basic or (`||`), and (`&&`), and not (`!`) operators Logical xor.
|
||||
- Logical xor using basic or (`||`), and (`&&`), not (`!`) operators.
|
||||
- You can use the Bitwise xor (`^`) operator also on the two given values.
|
||||
|
||||
```js
|
||||
@ -17,4 +17,4 @@ xor(true, true); // false
|
||||
xor(true, false); // true
|
||||
xor(false, true); // true
|
||||
xor(false, false); // false
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user