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

Interface Extension Order

Order interfaces from most general (base) to most specific (extending):

Items to put in order

  • interface TRex extends Carnivore { roarDecibels: number }
  • interface Carnivore extends Dinosaur { huntingStyle: string }
  • interface Dinosaur extends Animal { era: string }
  • interface Animal { name: string }

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