Merge pull request #2005 from leviding/patch-17

Fix some confusing expression in chapter of optional chaining
This commit is contained in:
Ilya Kantor 2020-07-12 16:04:04 +03:00 committed by GitHub
commit 9e59ec101f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ For example, if according to our coding logic `user` object must be there, but `
So, if `user` happens to be undefined due to a mistake, we'll know about it and fix it. Otherwise, coding errors can be silenced where not appropriate, and become more difficult to debug.
```
````warn header="The variable before `?.` must exist"
````warn header="The variable before `?.` must be declared"
If there's no variable `user`, then `user?.anything` triggers an error:
```js run