Skip to content

Commit 87da55c

Browse files
committed
Add missed word in chapter 4
1 parent b0be0a0 commit 87da55c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

04_data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ console.log(city({name: "Vera"}));
905905
// → undefined
906906
```
907907

908-
The expression `a?.b` means the same `a.b` when `a` isn't null or undefined. When it is, it evaluates to undefined. This can be convenient when, as in the example, you aren't sure that a given property exists or when a variable might hold an undefined value.
908+
The expression `a?.b` means the same as `a.b` when `a` isn't null or undefined. When it is, it evaluates to undefined. This can be convenient when, as in the example, you aren't sure that a given property exists or when a variable might hold an undefined value.
909909

910910
A similar notation can be used with square bracket access, and even with function calls, by putting `?.` in front of the parentheses or brackets:
911911

0 commit comments

Comments
 (0)