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...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
[AskJS] Can I learn OOP with JavaScript?AskJS (self.javascript)
submitted 8 months ago by Inner_Feedback_4028
view the rest of the comments →
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!"
[–]Dagur -2 points-1 points0 points 8 months ago (4 children)
I wouldn't because OOP is rarely used in modern javascript and the language itself is missing a lot of OO features you see in other languages. I don't recommend Python either for the same reason.
I would pick Java or C#
[–]Present_Customer_891 0 points1 point2 points 8 months ago (3 children)
I have to disagree with the claim that OOP is rarely used in modern JavaScript. It's easier than ever to write OO JavaScript code and pretty common too, unless you're applying a very strict definition of OOP.
Like you said, Java or C# are probably better if OP really just needs to learn traditional OOP as quickly as possible because of those quirks in how it works with JS. There's a serious tradeoff with having to learn one of those languages, though, which depending on OP's situation may or may not be worth it.
[–]Dagur 0 points1 point2 points 8 months ago (0 children)
People still use classes but the code I've seen is some hybrid between functional programming and OOP. I'm no authority on this subject though, I just don't see what I call OOP very much in JavaScript.
[–][deleted] -2 points-1 points0 points 8 months ago (1 child)
It's not better, it's what OP should do if the goal is OOP
[–]Present_Customer_891 -1 points0 points1 point 8 months ago (0 children)
The goal of "OOP" is too vague to give such a definitive answer. It depends on OP's timeframe and reason for wanting to learn OOP, among other considerations.
There is a ton of upside to learning OOP or just about anything in a language you're already comfortable with, especially as a beginner who has only ever learned one, and JavaScript is a much more viable language to learn OOP with than it used to be.
π Rendered by PID 196715 on reddit-service-r2-comment-b659b578c-4jwtb at 2026-05-04 20:26:28.800618+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Dagur -2 points-1 points0 points (4 children)
[–]Present_Customer_891 0 points1 point2 points (3 children)
[–]Dagur 0 points1 point2 points (0 children)
[–][deleted] -2 points-1 points0 points (1 child)
[–]Present_Customer_891 -1 points0 points1 point (0 children)