r/learnjavascript • u/Likkle_yute9 • Jul 03 '26
Beginner's Luck
Should beginners learn JavaScript just for web development, or learn the language more broadly?
Hi everyone,
I'm a beginner trying to figure out the best way to learn JavaScript.
Most tutorials teach JavaScript in the context of building websites (HTML, CSS, DOM, etc.), but JavaScript has grown into a much broader language with things like Node.js, backend development, desktop apps, mobile apps, automation, and more.
If you were starting from scratch today, would you:
Learn JavaScript mainly through web development first, then branch out later?
Learn JavaScript as a general-purpose programming language first (fundamentals, algorithms, data structures, OOP, async programming, etc.), and then apply it to web development?
Which approach builds a stronger foundation for a complete beginner, and why?
I'd love to hear what worked for you and what you would recommend to someone just starting out
View all comments
Show parent comment
1
u/BrainCurrent8276 Jul 04 '26
Why not? But I did not say to learn it before or learn it after.
What is wrong qith you guys, you can learn one thing at the time?
It is not like PHP looks like English, and JavaScript is like Mandarine, two completely different languages.
Most of programming languages is so similar, that if you accidently used PHP syntax in JS, and JS syntax in PHP -- then you do know, that you are finally LEARNING SOMETHING.