DEV Community

Ebrar Gursel
Ebrar Gursel

Posted on

Javascript or Typescript?

I want improve myself to Web Development. I learned html and css .
Do you think next step Javascript or Typescript? I am waiting for your various recommendations.

Top comments (5)

Collapse
 
kevinluo201 profile image
Kevin Luo

I would suggest learning javascript first. Typescript is for advanced web developers who already know what they're doing

Collapse
 
ebrargursel profile image
Ebrar Gursel

Thanks for the suggestion.

Collapse
 
kevinluo201 profile image
Kevin Luo

Maybe I should have explained more. Types are good and useful, especially in a big project. However, if you're still learning how to program in javascript. Types are just a distraction from other essential parts of Javascript. That's why I suggest you should focus on Javascript first.

Collapse
 
raddevus profile image
raddevus

I have thought on this and I even wrote up a ReactJS component which I ended up basing on TypeScript (instead of JS). I kind of regretted using TypeScript because of ease of sharing with others (who in many cases don't know or have TypeScript).
With all of the recent changes to JS and the fact that you now have Class support in JS, I lean toward pure JS now more than ever. I just think the recent improvements in JS has kind of made TS a bit less important.

I understand that the strong-typing can be a real help for large projects though.
Interesting discussion.
Hey, if you get a chance would you mind taking a look at my latest article here on dev.to? Software Developer, Are You Just A Hammer?

Collapse
 
ebrargursel profile image
Ebrar Gursel

Thanks for the suggestion.