Concept: Type vs Interface
Concept Check Medium
Question
When should you prefer `type` over `interface`?
Hint
Some type constructs are only available with type aliases.
Explanation
Prefer type when you need unions (A | B), intersections (A & B), tuples ([string, number]), or aliases for primitives (type ID = string). Prefer interface for object shapes, especially when you need declaration merging or extends. For simple object types, either works — choose based on team convention.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.