DEV Community

Discussion on: 7 Tips For Clean Code

 
akashshyam profile image
Akash Shyam

But typescript offers some extra functionality that javascript does not have like Readonly variables, private/public/protected properties and methods in classes etc etc.

In the end, it all comes down to preference

Thread Thread
 
joelbonetr profile image
JoelBonetR 🥇 • Edited

As I said, there's NOTHING that you can do using TS that can't be implemented using JS.
stackoverflow.com/questions/242840...

For instance, there are things that you cannot do with TS that definitely are available on vanilla JS :D

Apart from that using a feature just because it's here is most of time a bad analysis of what do you really need to reach a given software solution, and anything that you feel missing or unexperienced/lazy to develop by your own, there will be a babel plugin or whatever that cover that need hahaha

Thread Thread
 
akashshyam profile image
Akash Shyam

Instead of continuing this discussion, here check out all my points and views here.

Thread Thread
 
joelbonetr profile image
JoelBonetR 🥇

finished my text and commented on the proper discussion :D

Thread Thread
 
akashshyam profile image
Akash Shyam

Lol 😂