Put in order · JavaScript and TypeScript course · Module 6: TypeScript Basics

From Simple to Advanced Generics

Order generic concepts from simplest to most advanced:

Items to put in order

  • Generic function with one parameter <T>
  • Generics with constraints (T extends Interface)
  • Generics with keyof and mapped types
  • Function with multiple parameters <T, U>

You can check the correct answer by solving this task in the CodeWorlds game.