Skip to content

Commit 450612a

Browse files
authored
Fix some confusing expression
1 parent 445bda3 commit 450612a

File tree

1 file changed

+1
-1
lines changed
  • 1-js/04-object-basics/07-optional-chaining

1 file changed

+1
-1
lines changed

1-js/04-object-basics/07-optional-chaining/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ For example, if according to our coding logic `user` object must be there, but `
7474
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.
7575
```
7676
77-
````warn header="The variable before `?.` must exist"
77+
````warn header="The variable before `?.` must be declared"
7878
If there's no variable `user`, then `user?.anything` triggers an error:
7979

8080
```js run

0 commit comments

Comments
 (0)