From 6d29218ad0080e849f7762ff6a038e0f9145d894 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Thu, 24 Mar 2022 08:46:04 +0300 Subject: [PATCH] minor fixes --- 1-js/04-object-basics/07-optional-chaining/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/04-object-basics/07-optional-chaining/article.md b/1-js/04-object-basics/07-optional-chaining/article.md index 9818f0de..10ae3629 100644 --- a/1-js/04-object-basics/07-optional-chaining/article.md +++ b/1-js/04-object-basics/07-optional-chaining/article.md @@ -110,7 +110,7 @@ We should use `?.` only where it's ok that something doesn't exist. For example, if according to our code logic `user` object must exist, but `address` is optional, then we should write `user.address?.street`, but not `user?.address?.street`. -Then, if `user` happens to be undefined, that definitely is a mistake, we'll see a programming error about it and fix it. Otherwise, if we overuse `?.`, coding errors can be silenced where not appropriate, and become more difficult to debug. +Then, if `user` happens to be undefined, we'll see a programming error about it and fix it. Otherwise, if we overuse `?.`, coding errors can be silenced where not appropriate, and become more difficult to debug. ``` ````warn header="The variable before `?.` must be declared"