Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 740a2df

Browse files
Fix typo in 1.2.12
1 parent a6017db commit 740a2df

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
@@ -109,7 +109,7 @@ If we assume that zero height is a valid value, that shouldn't be replaced with
109109
110110
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). So `??` is evaluated before `=` and `?`, but after most other operations, such as `+`, `*`.
111111
112-
So if we'd like to choose a value with `??` an expression with other operators, consider adding parentheses:
112+
So if we'd like to choose a value with `??` in an expression with other operators, consider adding parentheses:
113113
114114
```js run
115115
let height = null;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /