diff --git a/1-js/02-first-steps/11-logical-operators/article.md b/1-js/02-first-steps/11-logical-operators/article.md index e7d370c979..3be9d543fd 100644 --- a/1-js/02-first-steps/11-logical-operators/article.md +++ b/1-js/02-first-steps/11-logical-operators/article.md @@ -230,7 +230,7 @@ alert( 1 && 2 && null && 3 ); // null alert( 1 && 2 && 3 ); // 3,最后一个值 ``` -````聪明的头脑知道:"与运算 `&&` 在或操作符 `||` 之前执行" +````smart header="与运算 `&&` 在或操作符 `||` 之前执行" 与运算 `&&` 的优先级比或运算 `||` 要高,所以它将会比或运算先执行。 下面代码中的,`1 && 0` 将会首先被运算: