JavaScript bank Type Systems JavaScript / 7 questions Your progress 0 / 7 done Saved in this browser. Reset All 7 Easy 1 Medium 5 Hard 1 Hide done No questions match those filters. 1 Explain structural typing in TypeScript versus nominal typing — why can two unrelated interfaces be compatible? Medium 2 What is the difference between `interface` and `type` aliases, and when would you prefer one over the other? Easy 3 Explain generics with a practical example (e.g., a generic `useFetch<T>` hook return type). Medium 4 What are union and intersection types, and how does TypeScript narrow union types via type guards? Medium 5 Explain utility types like `Partial`, `Pick`, `Omit`, and `Record`, with when you'd use each. Medium 6 What is the difference between `any`, `unknown`, and `never`, and why is `unknown` safer than `any`? Medium 7 Explain how TypeScript's structural typing interacts with excess property checks on object literals. Hard ← Previous Modern Browser APIs Next → Quality Engineering