1.What is TypeScript, and do its types exist at runtime?
Show hint
What does the compiler output?
Show solution
TypeScript is JavaScript with static types. The compiler checks the types and removes them, outputting plain JavaScript. Types do not exist at runtime, so runtime checks (and validation of outside data) still need JavaScript code such as type guards.