DEV Community

Discussion on: No, TypeScript is not OOP version of JavaScript

 
macsikora profile image
Pragmatic Maciej

The statement is horrible. Both parts are wrong, as it's has vs form. This is OOP and this is not. Scripting is totally different thing than paradigm.

But to be clear it's only example. There are in the community all the time such opinions that TS is only for OOP, like you want OOP you don't use JS but TS. But truth is you want static type system you choose TS, it has nothing to do if you will do OOP or not.

The mainstream of developers sees OOP as classes and interfaces, as both ale in TS from beginning then TS is by many considered more OOP.

Fact is that OOP is not about only classes but about message passing, but I focused on the differences in class based OOP as this is always the main point.

Js is multi-paradigm and TS follows that.