What TypeScript Adds to JavaScript
Learn how TypeScript extends JavaScript with static types.
Welcome
TypeScript is a superset of JavaScript that adds static type annotations. In this lesson you'll learn exactly what TypeScript contributes on top of plain JavaScript.
TypeScript Is a Superset
Every valid JavaScript file is valid TypeScript. You can rename a .js file to .ts and it will compile. TypeScript only adds features on top — it never removes JavaScript syntax.
All lessons in this course
- JavaScript Pain Points: Runtime Bugs
- What TypeScript Adds to JavaScript
- Compiling TypeScript to JavaScript
- When to Use TypeScript in Your Projects