freeCodeCamp

Learn TypeScript — Full Course for Beginners

Bob Ziroll's two-hour TypeScript introduction for freeCodeCamp — annotations, interfaces, unions and basic generics, framed as a layer over JavaScript.

FreeBeginner2–4 hoursEnglishTypeScript
Go to course

Opens on freeCodeCamp — a direct link, no affiliate tracking.

Course overview

Bob Ziroll recorded this one for freeCodeCamp's YouTube channel, adapted from his Scrimba material, and it runs around two hours. If you know his React course the delivery will be familiar: patient, example-first, and structured around small things you type rather than concepts you're told about.

The framing is the useful part. It doesn't treat TypeScript as a new language to learn from scratch — it treats it as a layer you add to JavaScript you already write, which is how nearly everyone actually encounters it. You start with the annoyance TypeScript solves before you meet the syntax that solves it.

What the two hours cover

The working set: primitive type annotations, arrays and objects, type aliases and interfaces, unions and literal types, optional properties, functions with typed parameters and returns, generics at an introductory level, and the practical business of typing data that arrives from an API. Enough to read and write the TypeScript in a normal application codebase.

It does not go near the deep end. Conditional types, mapped types, template literal types, declaration merging, and the parts of tsconfig that cause real arguments are all out of scope.

Video versus the handbook

Worth being clear about the trade. The official TypeScript Handbook is more complete, more precise, and free of anyone's teaching preferences. This video is faster, warmer, and much better at showing you why a type error is happening in a live editor — something static prose is bad at.

The cost of video is that you can't skim it, you can't search it, and when your actual error looks different from the one on screen, there's nothing to look up. The other cost is version drift: a two-hour recording ages, TypeScript ships several releases a year, and nobody re-records YouTube courses. Nothing taught here is wrong yet, but the tooling steps around it will not match your terminal exactly.

Who it's for — and who should skip it

Good if you write JavaScript, keep getting handed TypeScript codebases, and want the shape of it in an evening. Also good as a warm-up before reading the handbook, which is much easier once someone has shown you narrowing in motion.

Skip it if you already write TypeScript and want depth — this will not teach you anything new. Skip it too if you don't know JavaScript, since every example assumes it.

Our take

A solid, well-paced two hours that gets you to competent-enough and stops. Treat it as an introduction with a hard ceiling: you'll be able to read most TypeScript afterwards, and you'll still be lost the first time someone hands you a generic constraint. Follow it with the handbook.

At a glance

Price
Free
Level
Beginner
Time to complete
2–4 hours
Language
English
Certificate
Not offered
Taught by
freeCodeCamp
Category
TypeScript
Last checked
26 Aug 2026

Topics covered

  • typescript
  • youtube
  • course