#typescript inheritance deep dive
▻https://hackernoon.com/typescript-inheritance-deep-dive-9a53989af5a6?source=rss----3a8144eabfe3
How inheritance in Typescript actually works behind the curtain?Typescript and #javascript are both awesome languages. To a lot of developers Typescript feels more familiar because it offers concepts we normally encounter in traditional #programming languages. Inheritance is one of them.Due to backwards compatibility we generally transpile our code to Javascript. ES5 itself doesn’t contain classes nor an extend keyword.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. Let’s see what I mean by that.In this blogpost we will dive deep. On our way we will encounter a lot of concepts. It is important to wrap your head around those concepts. Take your time and make some breaks if necessary. You (...)