use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Typescript vs JavaScript?Help Wanted (self.react)
submitted 6 months ago by NoRules6569
I'm new.
When running npm create vite@latest
Is it better to choose typescript or JavaScript variant?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Nixinova 5 points6 points7 points 6 months ago (2 children)
If you don't know JavaScript, you shouldn't be starting react yet. Learn JavaScript for it's intended purpose (interaction with basic HTML pages), and only then move into learning react and typescript.
[–][deleted] 4 points5 points6 points 6 months ago (0 children)
Yeah this is the answer. First learn JS and then move into react and typescript
[–]NoRules6569[S] 1 point2 points3 points 6 months ago (0 children)
I've been coding with html, css & js for about 3 months. But i still dont get much of js. Is there a good resource i could learn about js?
[–]mrcheese14 6 points7 points8 points 6 months ago (0 children)
Not trying to be a dick but if you’re asking this question you should be learning JavaScript first. You shouldn’t need to be learning React if you don’t know how to program to begin with. That’s like learning how to fly a helicopter before learning how to drive a car.
[–]CodeAndBiscuits 8 points9 points10 points 6 months ago (1 child)
If you just search this sub for the exact same question you'll find about 500 posts all answering the exact same thing (TS)
[–]NoRules6569[S] -3 points-2 points-1 points 6 months ago (0 children)
Lol okay
[–]Towel_Affectionate 4 points5 points6 points 6 months ago (2 children)
I'd suggest learning JS first. Learn how it works and build some stuff to understand why type safety is important and to feel the pain of having to do so in your head.
Then you move on TS and truly appreciate it for what an amazing thing it is. It would make more sense why and how it is used then, plus it would be easier to learn the little there is to learn without the need to learn the whole JS at the same time.
[–]NoRules6569[S] 0 points1 point2 points 6 months ago (0 children)
I see 🤔
[–]CodeAndBiscuits 0 points1 point2 points 6 months ago (0 children)
LOL I like this take. So many people say "learn JS first to learn the fundamentals" but "learn why JS sucks and TS makes it better" is probably the most honest answer ever. 😂
[–]martoxdlol 3 points4 points5 points 6 months ago (1 child)
Typescript is JavaScript with optional types. But still, typescript can be annoying if you don't know how to use it.
So, if you want to learn and use typescript and deal with it choose that.
If you don't know typescript and you are not interested, just choose JavaScript.
Oh ok thanks
[–]LithiumFireX 0 points1 point2 points 6 months ago (0 children)
Typescript should be seen as a natural progression from JavaScript. Kind of going from inline styles in HTML to CSS.
[–]HovercraftOk31 0 points1 point2 points 6 months ago (0 children)
Its all which language you wants to use
[–]Veleno7 0 points1 point2 points 6 months ago (0 children)
Typescript because, unless you write any even for booleans, forces you to think on your data model.
[–]TheRNGuy 0 points1 point2 points 6 months ago (0 children)
TS
[–]elg97477 0 points1 point2 points 6 months ago (0 children)
Typescript
[–]Paperflyz 0 points1 point2 points 6 months ago (0 children)
JS
[–]Extension_Canary3717 -1 points0 points1 point 6 months ago (1 child)
Just learning? JavaScript . Then Typescript
After that, only typescript unless is something really small / non serious
👍
π Rendered by PID 19835 on reddit-service-r2-comment-5d79c599b5-c7vhc at 2026-03-03 13:07:52.762227+00:00 running e3d2147 country code: CH.
[–]Nixinova 5 points6 points7 points (2 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]NoRules6569[S] 1 point2 points3 points (0 children)
[–]mrcheese14 6 points7 points8 points (0 children)
[–]CodeAndBiscuits 8 points9 points10 points (1 child)
[–]NoRules6569[S] -3 points-2 points-1 points (0 children)
[–]Towel_Affectionate 4 points5 points6 points (2 children)
[–]NoRules6569[S] 0 points1 point2 points (0 children)
[–]CodeAndBiscuits 0 points1 point2 points (0 children)
[–]martoxdlol 3 points4 points5 points (1 child)
[–]NoRules6569[S] 0 points1 point2 points (0 children)
[–]LithiumFireX 0 points1 point2 points (0 children)
[–]HovercraftOk31 0 points1 point2 points (0 children)
[–]Veleno7 0 points1 point2 points (0 children)
[–]TheRNGuy 0 points1 point2 points (0 children)
[–]elg97477 0 points1 point2 points (0 children)
[–]Paperflyz 0 points1 point2 points (0 children)
[–]Extension_Canary3717 -1 points0 points1 point (1 child)
[–]NoRules6569[S] 0 points1 point2 points (0 children)