What is TypeScript?
Answer
TypeScript is a strongly typed, compiled superset of JavaScript developed and maintained by Microsoft. It adds optional static typing, interfaces, generics, enums, and other features on top of JavaScript. TypeScript code is compiled (transpiled) to plain JavaScript that runs in any browser or Node.js environment. The key benefit is catching type errors at compile time rather than at runtime — this dramatically reduces bugs in large codebases. TypeScript is fully compatible with existing JavaScript: any valid JavaScript file is also a valid TypeScript file. It was released in 2012 and has become the industry standard for large-scale JavaScript applications, with frameworks like Angular, NestJS, and many React projects adopting it by default.