3 ms·
Being able to define the type of something with a lot of flexibility. Most languages only allow one kind of type. Typescript can have unions or types from inter
by nojvek 8y ago
Being able to define the type of something with a lot of flexibility. Most languages only allow one kind of type. Typescript can have unions or types from intersections or extended types. It has an innovate set of type algebra inspired from different languages over time.
Not only that but once you have types for inputs, it can infer a lot of things. Augment the humans with almost magical code completion ability because it can reason using types and static code. It helps catch a whole bunch of issues in a dynamic language like Javascript.
I’d say Typescript makes javascript fun and scalable to use.