A focused set of TypeScript interview questions with concise, correct answers, covering the type system, generics, utility types, narrowing, and how TS relates to JavaScript. Useful for interview prep or screening candidates.
What is TypeScript? A statically typed superset of JavaScript that compiles to plain JS. It adds optional types caught at compile time, catching bugs before runtime. All valid JS is valid TS.
interface vs type?