Concept: Variance
Question
How does TypeScript handle variance for array types?
Hint
Think about whether an array of dogs can be used where an array of animals is expected.
Explanation
TypeScript arrays are covariant: if Dog extends Animal, then Dog[] is assignable to Animal[]. This is technically unsound (you could push a Cat to a Dog[] typed as Animal[]), but it matches JavaScript's runtime behavior and is practical. Function parameters are bivariant by default (strictFunctionTypes makes them contravariant).
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.