Skip to content

Commit 9705a09

Browse files
committed
minor fixes
1 parent e968646 commit 9705a09

File tree

1 file changed

+1
-1
lines changed
  • 1-js/02-first-steps/12-nullish-coalescing-operator

1 file changed

+1
-1
lines changed

1-js/02-first-steps/12-nullish-coalescing-operator/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ alert(user ?? "Anonymous"); // John
4141
4242
We can also use a sequence of `??` to select the first defined value from a list.
4343
44-
Let's say we a user's data in variables `firstName`, `lastName` or `nickName`. All of them may be undefined, if the user decided not to enter a value.
44+
Let's say we have a user's data in variables `firstName`, `lastName` or `nickName`. All of them may be undefined, if the user decided not to enter a value.
4545
4646
We'd like to display the user name using one of these variables, or show "Anonymous" if all of them are undefined.
4747

0 commit comments

Comments
 (0)