Question · JavaScript and TypeScript course · Module 7: Advanced TypeScript

Interface Implementation

What does the implements keyword do in TypeScript?

Answer options

  • Merges two interfaces into one
  • Copies methods from the interface to the class
  • Creates a new instance of the interface
  • Declares that a class must fulfill the contract defined in an interface

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