Skip to content

Commit 90b1a2b

Browse files
authored
Merge pull request #368 from brentguf/logical-operators
Logical operators
2 parents 18d8783 + 4cf6cd3 commit 90b1a2b

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ Given multiple OR'ed values:
7676
result = value1 || value2 || value3;
7777
```
7878

79-
The OR `"||"` operator does the following:
79+
The OR `||` operator does the following:
8080

8181
- Evaluate operands from left to right.
8282
- 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.
8484

8585
A value is returned in its original form, without the conversion.
8686

@@ -194,7 +194,7 @@ Given multiple AND'ed values:
194194
result = value1 && value2 && value3;
195195
```
196196
197-
The AND `"&&"` operator does the following:
197+
The AND `&&` operator does the following:
198198
199199
- Evaluate operands from left to right.
200200
- 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
268268
269269
## ! (NOT)
270270
271-
The boolean NOT operator is represented with an exclamation sign `"!"`.
271+
The boolean NOT operator is represented with an exclamation sign `!`.
272272
273273
The syntax is pretty simple:
274274

0 commit comments

Comments
 (0)