You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 03_Operators and Expressions/00_Operators/02_Logical Operators/00_.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ The `&&` operator is the logical and operator, which takes in two boolean values
5
5
1. true && true - evaluates to true
6
6
2. true && false - evaluates to false
7
7
3. false && true - evaluates to false
8
-
4. false && false - evaluates to true
8
+
4. false && false - evaluates to false
9
9
10
10
The `||` operator is the logical or operator, which takes in two boolean values and returns true if one of the values are true. The four different cases are shown below:
11
11
@@ -14,4 +14,4 @@ The `||` operator is the logical or operator, which takes in two boolean values
14
14
3. false || true - evaluates to true
15
15
4. false || false - evaluates to false
16
16
17
-
As JavaScript is a weakly typed language, any value can turn into true or false values. Every data type can be converted to it's boolean representation using double not (`!!`).
17
+
As JavaScript is a weakly typed language, any value can turn into true or false values. Every data type can be converted to it's boolean representation using double not (`!!`).
0 commit comments