Skip to content

Commit 00e49df

Browse files
authored
update: 1-js/02-first-steps/12-nullish-coalescing-operator/article.md (#1210)
1 parent 9549ff7 commit 00e49df

File tree

1 file changed

+1
-1
lines changed
  • 1-js/02-first-steps/12-nullish-coalescing-operator

1 file changed

+1
-1
lines changed

‎1-js/02-first-steps/12-nullish-coalescing-operator/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ alert(height ?? 100); // 0
106106
107107
## 优先级
108108
109-
`??` 运算符的优先级与 `||` 相同,它们的优先级都为 `4`,详见:[MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence#Table)。
109+
`??` 运算符的优先级与 `||` 相同,它们的优先级都为 `3`,详见:[MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence#Table)。
110110
111111
这意味着,就像 `||` 一样,空值合并运算符在 `=``?` 运算前计算,但在大多数其他运算(例如 `+``*`)之后计算。
112112

0 commit comments

Comments
 (0)