Typescript and JavaScript are both awesome languages.Due to backwards compatibility we generally transpile our code to Javascript. But a lot of Typescript constructs do not exist in ES5. Inheritance for example is one of them.
So how does this work then? Typescript uses syntactic sugar to “mimic” the class and inheritance behaviour. It creates kind of an illusion of those concepts. If you want to know what I mean by that then checkout my article on Typescript inheritance deep dive
Top comments (0)