Lesson 1: add a tip
1 changed files with 2 additions and 0 deletions
lessons/01-values-variables-and-const/README.md
| @@ -12,6 +12,8 @@ | ||
| 12 | 12 | |
| 13 | 13 | > **Tip:** Use `===` unless you have a reason not to. |
| 14 | 14 | |
| 15 | +> **Tip:** Optional chaining saves a lot of `if`s: `user?.address?.city`. | |
| 16 | + | |
| 15 | 17 | ## Run it |
| 16 | 18 | |
| 17 | 19 | ```sh |