Build on JavaScript with types that describe your data and catch mismatched assumptions. Learn to read compiler errors, model alternatives and validate the values your program receives.
// Replace 25 with "25" to see a compiler error.
const sessions: number[] = [25, 10, 15];
let total: number = 0;
for (const minutes of sessions) {
total += minutes;
}
console.log("Planned: " + total + " minutes");
Enable JavaScript to edit and type-check this example.
Console output
Try a wrong type, read the diagnostic, then fix it and choose Check & run.
Find your starting point
Three levels. One clear path.
New to TypeScript, rather than new to programming. Know JavaScript variables, functions, arrays and objects first. Every available course is public, with no sign-in required.
01 / BeginnerPublic
Beginner TypeScript
After JavaScript beginner
Read compiler errors and describe functions, objects and alternatives without losing sight of runtime behavior.
You learn a rule by using it. Each day gives you chances to predict, experiment and solve a problem with less help.
01
Learn by changing code
Read a short explanation, predict the output and run the example. Change an input to find out whether you understood the rule.
02
Get help in small steps
Try each exercise first. Open an idea hint, then a first-step hint if you need it. Compare your approach with the worked solution afterward.
03
Build beyond the example
Use checkpoints to work independently. Finish a project, tackle a different brief and return a few days later to practice from memory.
Beginner, day by day
Seven steps to a working project.
Plan around 90 minutes of active study on Days 1–6; the final project has its own estimate. Split a day into smaller sessions when needed; the order matters more than the calendar. Delayed review is extra.
By the end of beginner, the pieces come together in a typed study-planner core. You will know where the data lives, how it changes and how to check the result.
Describe the planner’s data with types, validate outside input and test the behavior. Then transfer the same habits to a fresh problem.
The small example at the top already uses the same idea: store a few sessions and derive a useful total. The course teaches each piece before asking you to build the complete project.
About the browser editor
The real TypeScript compiler checks this example before it runs. Types help catch mistakes; they do not replace runtime validation or tests.
Before you begin
A few useful answers.
Start with the right expectations, then spend your time making things work.
Can I start without JavaScript?+
Learn JavaScript basics first. These lessons assume you can write a function, traverse an array and read an object. TypeScript beginner focuses on adding types to those skills.Start with JavaScript beginner →
Will I see actual TypeScript errors?+
Yes. Check types uses the TypeScript compiler with strict checks. Diagnostics include the message and source location; Check & run executes only after checking succeeds.
Does a passing type check mean my program is correct?+
No. Types describe constraints the compiler can check. External data still needs validation, and the behavior your application promises still needs tests.
Is this course public?+
All three TypeScript levels are public. No sign-in or local installation is needed for the core lessons. Downloadable projects provide a bridge to local work.
Start with one small program
You can run your first example today.
No setup checklist. Open Day 1, change a line and see what happens. The rest can follow one lesson at a time.