Type Inference
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 new teammate adds type annotations to every single variable, even ones assigned a number literal, and asks whether that's best practice. Explain how TypeScript infers types, where annotations add value, and where they're just noise.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.