Optional and Nullable Values
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- easy
- Pro
With strict mode turned on, the compiler complains that a user's address might be undefined when you read the city. A colleague silences it with an exclamation mark. Explain what the compiler is warning about, and better ways to handle it.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.