Null and Undefined
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
A junior developer asks why JavaScript has both null and undefined, and which one they should use for a user's middle name when it isn't known. Explain where each comes from, how they compare, and how you'd check for either safely.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.