Merge pull request #2482 from lumosmind/patch-3

there are four logical operators in JS
This commit is contained in:
Ilya Kantor 2021-02-02 10:36:35 +03:00 committed by GitHub
commit 0c8a4fe995
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
# Logical operators # Logical operators
There are three logical operators in JavaScript: `||` (OR), `&&` (AND), `!` (NOT). There are four logical operators in JavaScript: `||` (OR), `&&` (AND), `!` (NOT), '??' (Nullish Coalescing).
Although they are called "logical", they can be applied to values of any type, not only boolean. Their result can also be of any type. Although they are called "logical", they can be applied to values of any type, not only boolean. Their result can also be of any type.