Run `tsc --init` in the project directory to generate a default `tsconfig.json` file.
Duration of the online course: 4 hours and 25 minutes
New
Build safer web apps with a free TypeScript course: master types, functions, and generics, catch bugs early, and boost your JavaScript skills fast.
If you already write JavaScript and want more confidence shipping code, TypeScript is one of the fastest upgrades you can make. This free online course helps you move from loosely typed scripts to a workflow where your editor and compiler work like a safety net, pointing out mistakes before they turn into production bugs. You will learn how TypeScript thinks, how to set it up in a project, and how to read its feedback so you can iterate quickly without guessing.
You will start by getting TypeScript installed and generating a project configuration so your code compiles the way you expect. From there, you will build a solid foundation in types, learning what they represent and why they matter. You will see how TypeScript catches common runtime problems early, such as calling array methods on values that are no longer arrays, and you will learn to lean on those checks to refactor safely.
The course then guides you through the most important everyday types you will use when building web applications: string, number, boolean, object, arrays, and tuples. You will practice choosing the right representation for real data, including optional properties and mixed collections. You will also understand when flexible escape hatches like any can hurt maintainability, and how unknown can keep safety without blocking progress.
As you advance, you will connect these building blocks into scalable models using unions, intersections, enums, interfaces, and type aliases. The focus is on writing code that stays readable as the project grows, while remaining strict enough to prevent subtle errors. Finally, you will apply TypeScript to functions, including parameters, defaults, and arrow functions, and learn how to define custom types that match your application logic. You will also learn generics so you can write reusable utilities that stay type-safe, making your codebase cleaner and easier to extend.
By the end, you will be able to add TypeScript to new or existing JavaScript projects, model data with confidence, and create functions and helpers that are both flexible and safe. If your goal is to improve code quality, reduce debugging time, and prepare for professional web development workflows, this course gives you a practical, beginner-friendly path to get there.
Explore the best free online JavaScript courses with certificates and build in-demand web development skills at your own pace. Learn JavaScript fundamentals, DOM manipulation, ES6, APIs, frameworks, and more through beginner-friendly and advanced classes. Enroll today, earn a certificate, and strengthen your resume for developer career opportunities.
Explore free online TypeScript courses designed to help you master typed JavaScript, modern development, interfaces, generics, classes, and real-world app building. Learn at your own pace with beginner-to-advanced lessons, practical projects, and flexible study options. Enroll today, build in-demand coding skills, and earn a certificate for free.
4 hours and 25 minutes of online video course
Digital certificate of course completion (Free)
Exercises to train your knowledge
100% free, from content to certificate
How do you create a tsconfig.json file in a TypeScript project?
Run `tsc --init` in the project directory to generate a default `tsconfig.json` file.
What is the difference between any and unknown in TypeScript?
`any` allows unrestricted operations, while `unknown` requires type checking or narrowing before the value can be used.
How do TypeScript generics improve reusable functions?
Generics preserve the input and output type, providing safer reusable code than using `any`.
Ready to get started?Download the app and get started today.
Install the app now
to access the courseOver 5,000 free courses
Programming, English, Digital Marketing and much more! Learn whatever you want, for free.
Study plan with AI
Our app's Artificial Intelligence can create a study schedule for the course you choose.
From zero to professional success
Improve your resume with our free Certificate and then use our Artificial Intelligence to find your dream job.
You can also use the QR Code or the links below.

Free CoursePHP for Beginners: Learn PHP, MySQL and Login Systems
10h49m
29 exercises

Free CourseCSS Complete Tutorial
8h30m
49 exercises

Free CoursePHP for Beginners: Learn PHP, MySQL, MVC, Routing, Authentication and Testing
10h45m
49 exercises

Free CourseLaravel
4h04m
20 exercises

Free CourseProgressive Web Application PWA for Beginners
3h24m
15 exercises

Free CourseJavaScript for beginners
1h40m
2 exercises

Free CourseUmbraco CMS
6h21m
19 exercises

Free CourseAngular 2 for Beginners
1h02m
9 exercises

Free CourseDesign and code a landing page
4h40m
15 exercises

Free CourseMySQL Database
3h53m
6 exercises
+ 10 million
students
Free and Valid
Certificate
60 thousand free
exercises
4.8/5 rating in
app stores
Free courses in
video and ebooks