Merge pull request #2154 from vsemozhetbyt/patch-1

Fix typo in 1.2.12
This commit is contained in:
Ilya Kantor 2020-09-27 12:28:52 +03:00 committed by GitHub
commit f489145731
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ If we assume that zero height is a valid value, that shouldn't be replaced with
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 `+`, `*`.
So if we'd like to choose a value with `??` an expression with other operators, consider adding parentheses:
So if we'd like to choose a value with `??` in an expression with other operators, consider adding parentheses:
```js run
let height = null;