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
4 changes: 2 additions & 2 deletions 1-js/02-first-steps/11-logical-operators/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ This leads to some interesting usage compared to a "pure, classical, boolean-onl
In the example below, the first message is printed, while the second is not:

```js run no-beautify
*!*true*/!* || alert("printed");
*!*false*/!* || alert("not printed");
*!*true*/!* || alert("not printed");
*!*false*/!* || alert("printed");
```

In the first line, the OR `||` operator stops the evaluation immediately upon seeing `true`, so the `alert` isn't run.
Expand Down