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

TypeScript Interfaces

How does an interface differ from a type alias in TypeScript?

Answer options

  • An interface is faster at runtime
  • An interface can be extended (extends) and implemented, while a type alias supports union and intersection
  • A type alias cannot describe objects
  • There is no difference

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