1. Home
  2. Library
  3. Development
Curated Library

TypeScript for Beginners: Types, Interfaces, Classes and Generics

A 26-lesson, roughly four-hour introduction to TypeScript for people who already know some JavaScript. It covers setup, basic types, functions, objects, type aliases, unions, tuples, interfaces, class access modifiers, abstract classes, generics and type narrowing. It suits beginners who want a fast, concept-by-concept tour of the language.

26 lessons 3h 57m total Development English Earns YodaCoins
Lessons by Hitesh Choudhary on YouTube

Curated by YodaHut. These lessons are hosted on YouTube and produced by their original creators, who are not affiliated with YodaHut. You still earn YodaCoins, keep your streak and track progress here.

What You'll Learn

  • Install TypeScript and compile .ts files to JavaScript
  • Annotate variables and functions with types, and rely on type inference instead of using any
  • Model data with type aliases, interfaces, union types, tuples, readonly and optional properties
  • Choose between interface and type for a given situation
  • Write classes using public, private and protected members, getters and setters, and abstract classes
  • Write generic functions, arrays, arrow functions and classes
  • Narrow types with typeof, instanceof, type predicates and discriminated unions with never exhaustiveness checks

Prerequisites

  • Working knowledge of JavaScript (variables, functions, objects, classes)
  • Node.js and a code editor installed, or willingness to set them up

About the Instructor

Hitesh Choudhary

YouTube creator

26 lessons here 3h 57m

The lessons in this course were produced by Hitesh Choudhary and are published on YouTube. YodaHut selected and sequenced them into this course; we did not make them, and Hitesh Choudhary is not affiliated with YodaHut.

Visit the channel on YouTube
  • 26 lessons
  • 3h 57m of video
  • Earns YodaCoins & streaks
  • Timestamped notes
  • Free — hosted on YouTube

No certificate is issued for Library courses.