From 740a2dfd5b7cd7b9f95d4cdd0940628ade029eff Mon Sep 17 00:00:00 2001 From: Vse Mozhe Buty Date: Sun, 27 Sep 2020 11:11:41 +0300 Subject: [PATCH] Fix typo in 1.2.12 --- 1-js/02-first-steps/12-nullish-coalescing-operator/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/12-nullish-coalescing-operator/article.md b/1-js/02-first-steps/12-nullish-coalescing-operator/article.md index 6be872e1..8a93d966 100644 --- a/1-js/02-first-steps/12-nullish-coalescing-operator/article.md +++ b/1-js/02-first-steps/12-nullish-coalescing-operator/article.md @@ -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;