TypeScript bank Generics TypeScript / 6 questions Your progress 0 / 6 done Saved in this browser. Reset All 6 Medium 4 Hard 2 Hide done No questions match those filters. 1 What are generics and why are they better than `any` for reusable functions? Medium 2 What do generic constraints (`extends`) do, and give an example that needs one. Medium 3 How does type inference flow through a generic function, and when must you annotate manually? Medium 4 What is a default type parameter, and when is it useful? Medium 5 How would you type a generic `pick(obj, keys)` function so the result is precise? Hard 6 What are variance issues, and why can passing a `Dog[]` where `Animal[]` is expected be unsafe? Hard ← Previous Narrowing & Guards Next → Utility & Mapped Types