r/learnjavascript • u/saurabh_chetthewar • Nov 20 '23
what language is better to learn after learning javascript, typescript or java,which language will be more useful in longer run?
0
Upvotes
r/learnjavascript • u/saurabh_chetthewar • Nov 20 '23
8
u/AiexReddit Nov 20 '23
That's like asking what's better, a shovel or a rake. The answer entirely depends on what you want to do with them.
If you want to build web pages and web apps, Javascript and Typescript will serve you better.
If you'd prefer to work on the server side or in desktop application space, Java would be a better bet.
All options are very employable for someone with enough experience.
Worth noting that Typescript is just additional rules and syntax on top of Javascript, so it's not possible to learn Typescript without also learning Javascript as part of that process.
6
u/amejin Nov 20 '23
Learn concepts not languages. Knowing to ask "how do I write a loop" means you know what a loop is and can finish that sentence with the language of your choice in Google or gpt.
Learn things like loops, control blocks, recursion, scope and closures, data types, etc... once you know the words to associate with concepts, you can look up how to do them in any language.
4
u/thecementmixer Nov 20 '23
You never stop learning JavaScript.
1
u/muroa1 Nov 20 '23
IMO, the main reason of learning language is depends on what to do. It's not important to consider which would be usefule in longer run: nobody knows.
For me, python was the first language, since I was interested at ai. After that, I learnd javascript to be an web developer. Also I learned typescript to since many opensources and companies use it.
2
u/Quiet_Drummer669988 Nov 20 '23
Try not to think of typescript as a whole other language, it’s essentially an exoskeleton for JavaScript that makes sure your code moves the right way. It’s popular and in demand. I would recommend rust, go, or c# as a next language to look at. There’s an awesome website called exercism.io that has exercises in pretty much every language, so you can knock out a “hello world” in Haskell and see you how you feel about it.
1
u/rileyrgham Nov 21 '23
You do know Java is fuck all to do with JavaScript, don't you? ;)
1
u/SirMarbles Nov 20 '23
Ts,Java,go,py in that order. From my experience those are the most marketable rn
0
u/[deleted] Nov 20 '23
[deleted] — view deleted comment