Recall & Review
beginner
What is TypeScript?
TypeScript is a programming language that builds on JavaScript by adding types. It helps catch errors early and makes code easier to understand.
Click to reveal answer
beginner
How does TypeScript help developers?
TypeScript helps by checking types before running code, which reduces bugs and improves code quality.
Click to reveal answer
intermediate
What does it mean that TypeScript is a superset of JavaScript?
It means all JavaScript code is valid TypeScript code, but TypeScript adds extra features like types.
Click to reveal answer
beginner
What happens to TypeScript code before it runs in a browser?
TypeScript code is converted (compiled) into plain JavaScript that browsers can understand.
Click to reveal answer
beginner
Name one key feature of TypeScript.
Static typing, which means you can specify the type of variables and functions to catch mistakes early.
Click to reveal answer
What is TypeScript primarily used for?
✗ Incorrect
TypeScript adds types to JavaScript to help catch errors and improve code quality.
Which statement is true about TypeScript?
✗ Incorrect
TypeScript is a superset of JavaScript, meaning it includes all JavaScript features plus more.
Before running in a browser, TypeScript code must be:
✗ Incorrect
TypeScript code is compiled into JavaScript so browsers can run it.
What is a benefit of using TypeScript?
✗ Incorrect
TypeScript helps find errors early by checking types before running the code.
Which feature is unique to TypeScript compared to JavaScript?
✗ Incorrect
Static typing is a key feature of TypeScript that JavaScript does not have.
Explain what TypeScript is and why developers use it.
Think about how TypeScript relates to JavaScript and what benefits it brings.
You got /4 concepts.
Describe the process of how TypeScript code runs in a browser.
Remember that browsers do not understand TypeScript directly.
You got /3 concepts.