Skip to content

Commit 0c8a4fe

Browse files
authored
Merge pull request #2482 from lumosmind/patch-3
there are four logical operators in JS
2 parents 23674dd + 82e4e21 commit 0c8a4fe

File tree

1 file changed

+1
-1
lines changed
  • 1-js/02-first-steps/11-logical-operators

1 file changed

+1
-1
lines changed

1-js/02-first-steps/11-logical-operators/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Logical operators
22

3-
There are three logical operators in JavaScript: `||` (OR), `&&` (AND), `!` (NOT).
3+
There are four logical operators in JavaScript: `||` (OR), `&&` (AND), `!` (NOT), '??' (Nullish Coalescing).
44

55
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.
66

0 commit comments

Comments
 (0)