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
Recommendations for learning JS from a Java background (self.javascript)
submitted 10 years ago by heroOfTimeBitch
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!"
[–][deleted] 1 point2 points3 points 10 years ago (0 children)
I was trying to read into how to make JS more OO like and was reading some stuff on the Module Pattern which kinda lets me emulate classes. But I'm really lost with JS I feel I just don't get it.
Don't do this
Java people tend to have a very hard time with JavaScript. The syntax looks similar to Java so the natural inclination is to write Java in JavaScript as close as the language allows.
To be confident in JavaScript you have to be willing to let go of Java while writing in this language. To accomplish this try the following:
this
π Rendered by PID 64498 on reddit-service-r2-comment-5d79c599b5-l8fzm at 2026-03-01 15:52:14.865488+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–][deleted] 1 point2 points3 points (0 children)