TypeScript Exercises
Master TypeScript syntax through 101 interactive fill-in-the-blank challenges. From variables to advanced logic, practice until it's second nature.
Exercise Categories
advanced types
5 ExercisesInteractive practice for advanced types in TypeScript.
async
10 ExercisesInteractive practice for async in TypeScript.
classes
10 ExercisesInteractive practice for classes in TypeScript.
decorators
5 ExercisesInteractive practice for decorators in TypeScript.
enums
10 ExercisesInteractive practice for enums in TypeScript.
functions
10 ExercisesInteractive practice for functions in TypeScript.
generics
10 ExercisesInteractive practice for generics in TypeScript.
interfaces
10 ExercisesInteractive practice for interfaces in TypeScript.
modules
6 ExercisesInteractive practice for modules in TypeScript.
type guards
5 ExercisesInteractive practice for type guards in TypeScript.
types
10 ExercisesInteractive practice for types in TypeScript.
utility types
10 ExercisesInteractive practice for utility types in TypeScript.
Why use Learn2Code for
TypeScript practice?
Active Recall
Don't just watch videos. Thinking about the missing code piece activates your brain much more effectively than passive learning.
Instant Feedback
Every choice you make gives you detailed, personalized feedback. You'll understand why a distractor is wrong immediately.
Zero Friction
No environment to set up. No accounts to create. Just pick a topic and start typing code.
// Example TypeScript Exercise
function calculateTotal(price, tax) {
const total = price * (1 + tax);
return total;
}Frequently Asked Questions
Are these TypeScript exercises free?
What topics are covered in the TypeScript practice?
How does the fill-in-the-blank format help?
Start your streak today
Join thousands of learners building real TypeScript fluency one blank at a time.
Practice TypeScript Now