Skip to content

Commit 1f6b1c7

Browse files
authored
Merge pull request #2003 from m47h4r/minor-fix-nullish-coalescing-operator
minor fix: precedence is 5 according to MDN
2 parents ffbf1a8 + 56edf4a commit 1f6b1c7

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Which behavior is better depends on a particular use case. When zero height is a
6868
6969
## Precedence
7070
71-
The precedence of the `??` operator is rather low: `7` in the [MDN table](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence#Table).
71+
The precedence of the `??` operator is rather low: `5` in the [MDN table](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence#Table).
7272
7373
So `??` is evaluated after most other operations, but before `=` and `?`.
7474

0 commit comments

Comments
 (0)