From cb62d6d867dd5917cc39720c5f0ba2a15a18a7e7 Mon Sep 17 00:00:00 2001 From: LeviDing Date: Sun, 15 Nov 2020 21:19:03 +0800 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 e66d86ac..deb0e5a8 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 have 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: