there are four logical operators in JS
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator
This commit is contained in:
parent
97ef86242f
commit
82e4e212f4
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
# 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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue