TypeScript Basics
Static types and the TypeScript language from the ground up.
Other courses on TypeScript: Everyday TypeScript, Advanced TypeScript.
About This Course
You'll Learn
The TypeScript type system, focusing on foundational concepts required to learn more advanced TypeScript topics.
There are 25 lessons containing 176 code examples. Most people finish this course in 3 hours over 6 calendar days.
Prerequisites
Basic JavaScript knowledge like variables, functions, if, and loops.
No experience with static types is required.
What Other Developers Think
I helped write the official [TypeScript] docs, and I'd strongly recommend [Execute Program's TypeScript courses].
— Orta T
It's not just "here's how to write TypeScript," it also situates TypeScript in a broader context so that I can think critically about why I'm using it and what the tradeoffs are.
— Josh B
Extra Articles
Level 1
Functions
Quiz: Type Error
Operators
Quiz: Add or Subtract
JavaScript Builtins
Quiz: Pluralize
Level 2
Locked
Quiz: Using Operators
Inference
Return Type Inference
Syntax Errors vs. Type Errors
Arrays
Quiz: Array Identity
Quiz: Syntax Error
Level 3
Locked
Type Syntax Is Consistent
Generic Arrays
Tuples
Generic Functions
Quiz: Select From Tuple
Quiz: Generic Identity Function
Generic Function Inference
Level 4
Locked
Quiz: Generic First Function
Type Keyword
Quiz: Generic Length
Object Types
Generic Object Types
Quiz: Object Type With Holes
Level 5
Locked
Anonymous Object Types
Object Narrowing
Quiz: Destructuring With Literal Objects
Function Types
Quiz: Writing a Function Type
Quiz: Name Property
Level 6
Locked
Type Unions
Quiz: Stringify
Generic Function Types
Literal Types
Conditional Narrowing
Quiz: Add or Subtract With Union
Level 7
Locked
Undefined in Arrays
Quiz: Generic First With Narrowing
Quiz: Has Logged In
Nullability
Quiz: Parse Nullable String