minor fixes

This commit is contained in:
Ilya Kantor 2021-02-02 11:43:35 +03:00
parent 19bf2d3f5a
commit 3fa4c32e1d
7 changed files with 32 additions and 23 deletions

View file

@ -1,6 +1,6 @@
# Logical operators: ||, && and !
# Logical operators
There are four logical operators in JavaScript: `||` (OR), `&&` (AND), `!` (NOT), '??' (Nullish Coalescing).
There are four logical operators in JavaScript: `||` (OR), `&&` (AND), `!` (NOT), `??` (Nullish Coalescing). Here we cover the first three, the `??` operator is in the next article.
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.