Fix some confusing expression
This commit is contained in:
parent
445bda3980
commit
450612a09e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue