commit
31553694b8
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ This leads to some interesting usage compared to a "pure, classical, boolean-onl
|
|||
alert(x); // undefined, because (x = 1) not evaluated
|
||||
```
|
||||
|
||||
If, instead, the first argument is `false`, `OR` evaluates the second one, thus running the assignment:
|
||||
If, instead, the first argument is `false`, `||` evaluates the second one, thus running the assignment:
|
||||
|
||||
```js run no-beautify
|
||||
let x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue