From fca113b532070035f6345fcedc0f12d5c5fc6ba9 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Tue, 20 Oct 2020 11:20:50 +0300 Subject: [PATCH] Update article.md --- 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 b2738a7a..d570afe9 100644 --- a/1-js/04-object-basics/07-optional-chaining/article.md +++ b/1-js/04-object-basics/07-optional-chaining/article.md @@ -68,7 +68,7 @@ alert( user.address && user.address.street && user.address.street.name ); // und AND'ing the whole path to the property ensures that all components exist (if not, the evaluation stops), but also isn't ideal. -As you can see, the property names are still duplicated in the code. E.g. in the code above, `user.address` appears three times. +As you can see, property names are still duplicated in the code. E.g. in the code above, `user.address` appears three times. That's why the optional chaining `?.` was added to the language. To solve this problem once and for all!