You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/04-object-basics/07-optional-chaining/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ For example, if according to our coding logic `user` object must be there, but `
74
74
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.
75
75
```
76
76
77
-
````warn header="The variable before `?.` must exist"
77
+
````warn header="The variable before `?.` must be declared"
78
78
If there's no variable `user`, then `user?.anything` triggers an error:
0 commit comments