From 9b2f866a39169479fbf01fcdae201a6b2c596ec3 Mon Sep 17 00:00:00 2001 From: Vse Mozhe Buty Date: Tue, 20 Oct 2020 20:08:15 +0300 Subject: [PATCH] Fix typo in 1.4.7 (optional chaining) --- 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 fd7a0edf..a20ad448 100644 --- a/1-js/04-object-basics/07-optional-chaining/article.md +++ b/1-js/04-object-basics/07-optional-chaining/article.md @@ -56,7 +56,7 @@ let user = {}; // user has no address alert(user.address ? user.address.street ? user.address.street.name : null : null); ``` -That's just awful, one may even problems understanding such code. +That's just awful, one may even have problems understanding such code. Don't even care to, as there's a better way to write it, using the `&&` operator: