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

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This beginner course introduces TypeScript through lessons and quizzes covering operators, functions, arrays, object types, generics, type inference, unions, narrowing, and nullability.

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.