Update article.md
This commit is contained in:
parent
ae1171069c
commit
c2f8c4fb9e
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ If there's no variable `user` at all, then `user?.anything` triggers an error:
|
||||||
// ReferenceError: user is not defined
|
// ReferenceError: user is not defined
|
||||||
user?.address;
|
user?.address;
|
||||||
```
|
```
|
||||||
There must be `let/const/var user`. The optional chaining works only for declared variables.
|
There must be `let/const/var user`. The optional chaining works only for declared variables.
|
||||||
````
|
````
|
||||||
|
|
||||||
## Short-circuiting
|
## Short-circuiting
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue