Question · JavaScript and TypeScript course · Module 6: TypeScript Basics

Intersection Types

What does the type A & B (intersection type) do?

Answer options

  • Creates a type combining all properties from A and B
  • Compares types A and B
  • Selects one of the types A or B
  • Creates a type with properties common to A and B

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