From 9ad8f66e58179097f1d10551dc799cbbd332e53e Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Tue, 20 Oct 2020 11:28:12 +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 43ac309f..022e2cd0 100644 --- a/1-js/04-object-basics/07-optional-chaining/article.md +++ b/1-js/04-object-basics/07-optional-chaining/article.md @@ -79,7 +79,7 @@ The optional chaining `?.` stops the evaluation if the part before `?.` is `unde **Further in this article, for brevity, we'll be saying that something "exists" if it's not `null` and not `undefined`.** In other words, `value?.prop`: -- returns `value.prop` if `value` exists (just like `value.prop`), +- is the same as `value.prop` if `value` exists, - otherwise (when `value` is `undefined/null`) it returns that `value`. Here's the safe way to access `user.address.street` using `?.`: