Question · JavaScript and TypeScript course · Module 6: TypeScript Basics
Extending Interfaces
What happens when interface B extends interface A?
Answer options
- Interface B replaces interface A throughout the code
- Interface B inherits all properties from A and can add new ones
- Interface B can only use properties defined in A
- Interface A is removed from compilation
You can check the correct answer by solving this task in the CodeWorlds game.