TypeScript is a statically typed superset of JavaScript that compiles to JS. It helps catch errors early and improves tooling with types and autocomplete.
Expanding on the short answer — what usually matters in practice:
A tiny example (an explanation template):
// Example: discuss trade-offs for "what-is-typescript-and-why-would-you-use-it?"
function explain() {
// Start from the core idea:
// TypeScript is a statically typed superset of JavaScript that compiles to JS. It helps catc
}