Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Independent

TypeScript Basics

via Independent

Overview

Learn the fundamentals of TypeScript in this comprehensive course. Explore essential concepts including operators, JavaScript builtins, type inference, functions, arrays, and object types. Dive into advanced topics such as tuples, type unions, generic arrays, literal types, and conditional narrowing. Master function types, generic object types, nullability, and more through hands-on lessons and quizzes. Gain practical skills in type error handling, pluralization, array manipulation, and object destructuring. By the end of this 3-hour weekly course, develop a solid foundation in TypeScript programming and enhance your ability to write type-safe, scalable code.

Syllabus

TYPESCRIPT BASICS EXTRAS

You don't have to read these articles to complete any of the lessons, but you may find them helpful (now or later).

  • How to install TypeScript
  • How to use TypeScript in Node.js
  • Is TypeScript Better Than JavaScript?
  • How to convert a string to a number in TypeScript
  WHAT'S NEXT

Tasks that will unlock as you continue through the course.

  • LESSON: Operators
  • LESSON: JavaScript builtins
  • LESSON: Inference
  • LESSON: Functions
  • LESSON: Arrays
  • LESSON: Type keyword
  • LESSON: Syntax errors vs type errors
  • LESSON: Object types
  • LESSON: Return type inference
  • LESSON: Tuples
  • LESSON: Type unions
  • LESSON: Generic arrays
  • LESSON: Literal types
  • LESSON: Generic functions
  • LESSON: Conditional narrowing
  • LESSON: Literal object types
  • LESSON: Object narrowing
  • LESSON: Function types
  • LESSON: Type syntax is consistent
  • LESSON: Generic object types
  • LESSON: Nullability
  • LESSON: Generic function inference
  • LESSON: Generic function types
  • LESSON: Undefined in arrays
  • QUIZ: Type error
  • QUIZ: Pluralize
  • QUIZ: Add or subtract
  • QUIZ: Using operators
  • QUIZ: Syntax error
  • QUIZ: Select from tuple
  • QUIZ: Array identity
  • QUIZ: Generic identity function
  • QUIZ: Generic first function
  • QUIZ: Generic length
  • QUIZ: Object type with holes
  • QUIZ: Destructuring with literal objects
  • QUIZ: Name property
  • QUIZ: Writing a function type
  • QUIZ: Stringify
  • QUIZ: Add or subtract with union
  • QUIZ: Parse nullable string
  • QUIZ: Has logged in
  • QUIZ: Generic first with narrowing

Reviews

Start your review of TypeScript Basics

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.