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
2 changes: 1 addition & 1 deletion 1-js/02-first-steps/11-logical-operators/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ alert( 1 && 2 && null && 3 ); // null
alert( 1 && 2 && 3 ); // 3,最后一个值
```

````聪明的头脑知道:"与运算 `&&` 在或操作符 `||` 之前执行"
````smart header="与运算 `&&` 在或操作符 `||` 之前执行"
与运算 `&&` 的优先级比或运算 `||` 要高,所以它将会比或运算先执行。

下面代码中的,`1 && 0` 将会首先被运算:
Expand Down