@@ -76,11 +76,11 @@ Given multiple OR'ed values:
76
76
result = value1 || value2 || value3;
77
77
```
78
78
79
- The OR ` "||" ` operator does the following:
79
+ The OR ` || ` operator does the following:
80
80
81
81
- Evaluate operands from left to right.
82
82
- For each operand, convert it to boolean. If the result is ` true ` , then stop and return the original value of that operand.
83
- - If all other operands have been assessed (i.e. all were ` falsy ` ), return the last operand.
83
+ - If all other operands have been assessed (i.e. all were ` false ` ), return the last operand.
84
84
85
85
A value is returned in its original form, without the conversion.
86
86
@@ -194,7 +194,7 @@ Given multiple AND'ed values:
194
194
result = value1 && value2 && value3;
195
195
```
196
196
197
- The AND `"&&" ` operator does the following:
197
+ The AND `&& ` operator does the following:
198
198
199
199
- Evaluate operands from left to right.
200
200
- For each operand, convert it to a boolean. If the result is `false`, stop and return the original value of that operand.
@@ -268,7 +268,7 @@ So it is recommended to use every construct for its purpose. Use `if` if we want
268
268
269
269
## ! (NOT)
270
270
271
- The boolean NOT operator is represented with an exclamation sign `"!" `.
271
+ The boolean NOT operator is represented with an exclamation sign `! `.
272
272
273
273
The syntax is pretty simple:
274
274
0 commit comments