DEV Community

Cover image for Don't be AFRAID of Typescript!

Don't be AFRAID of Typescript!

PRINCE KUKREJA on February 21, 2024

Introduction: Welcome to the world of TypeScript, where static typing and advanced features make JavaScript development more robust and manageable....
Collapse
 
kurealnum profile image
Oscar

Just a heads up that you can add highlighting to the code blocks if you'd like. Just change:

code block with no colors example

... to specify the language:

code block with colors example

More details in our editor guide!

Collapse
 
princekukreja profile image
PRINCE KUKREJA • Edited

Thanks @kurealnum! I've highlighted the code block based on the language. Appreciate the tip!

Collapse
 
_ndeyefatoudiop profile image
Ndeye Fatou Diop

Typescript is amazing ! I can’t imagine not using it. Vanilla JS feels like coding blindly since I don’t get warnings, completions, etc.
Tip for your article: you can highlight the code using dev.to/hoverbaum/how-to-add-code-h...

Collapse
 
princekukreja profile image
PRINCE KUKREJA

Glad you're loving TypeScript! It does provide that extra safety net compared to Vanilla JS. Thanks for the tip on highlighting code.

Collapse
 
sebastianccc profile image
Sebastian Christopher

A really good article for anyone interested in learning typescript. One good reason and why I strongly recommend typescript, is your code becomes self documented, and later easier to read. πŸ™‚

Collapse
 
princekukreja profile image
PRINCE KUKREJA

Thanks! Glad you found the article helpful!

Collapse
 
kevinbism profile image
Kevin Ramirez

Honestly, I'm afraid. Because I didn't work on a huge projects, I think is useful in that case. On small projects I'm still prefer Vanilla JS.

Collapse
 
princekukreja profile image
PRINCE KUKREJA

Starting with Vanilla JS for small projects is smart. TypeScript excels as projects grow bigger.
Happy Coding!