diff --git a/snippets/nor.md b/snippets/nor.md index 6e7b2f1d1..0671e6fd7 100644 --- a/snippets/nor.md +++ b/snippets/nor.md @@ -4,17 +4,16 @@ 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); +const nor = (a, b) => !(a||b); ``` ```js -nor(true,true); // false -nor(true,false); // false -nor(false,true); // false -nor(false,false); // true +nor(true, true); // false +nor(true, false); // false +nor(false, false); // true ```