Update nor.md

This commit is contained in:
Angelos Chalaris
2021-04-02 16:47:15 +03:00
committed by GitHub
parent aa5a00b516
commit a7e286f440

View File

@ -4,9 +4,9 @@ tags: math,logic,beginner
unlisted: true
---
Returns the logical nor of the given two values.
Checks if none of the arguments are `true`.
- Use the logical not (``) operator to return the inverse of the logical-or the given two values.
- Use the logical not (`!`) operator to return the inverse of the logical or (`||`) of the two given values.
```js
const nor = (a, b) => !(a||b);
@ -15,6 +15,5 @@ const nor = (a,b) => !(a||b);
```js
nor(true, true); // false
nor(true, false); // false
nor(false,true); // false
nor(false, false); // true
```