Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions 1-js/02-first-steps/11-logical-operators/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ Given multiple OR'ed values:
result = value1 || value2 || value3;
```

The OR `"||"` operator does the following:
The OR `||` operator does the following:

- Evaluate operands from left to right.
- For each operand, convert it to boolean. If the result is `true`, then stop and return the original value of that operand.
- If all other operands have been assessed (i.e. all were `falsy`), return the last operand.
- If all other operands have been assessed (i.e. all were `false`), return the last operand.

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

Expand Down Expand Up @@ -196,7 +196,7 @@ Given multiple AND'ed values:
result = value1 && value2 && value3;
```

The AND `"&&"` operator does the following:
The AND `&&` operator does the following:

- Evaluate operands from left to right.
- For each operand, convert it to a boolean. If the result is `false`, stop and return the original value of that operand.
Expand Down Expand Up @@ -270,7 +270,7 @@ So it is recommended to use every construct for its purpose. Use `if` if we want

## ! (NOT)

The boolean NOT operator is represented with an exclamation sign `"!"`.
The boolean NOT operator is represented with an exclamation sign `!`.

The syntax is pretty simple:

Expand Down