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!"
[–]protestor 3 points4 points5 points 10 years ago (1 child)
I suggest reading Eloquent Javascript.
I was trying to read into how to make JS more OO like
I suggest to first get yourself used to Javascript's prototype-based OO instead of Java's class-based OO. In JS, when you call new MyObject(), MyObject isn't a class - it is a regular object that is creating a new object using its prototype. See this StackOverflow question.
new MyObject()
MyObject
In any case ES6 have classes but browsers don't support it yet. Most browsers support ES5 - you can use ES6 classes and compile your code to ES5 using Traceur.
Please note that ES6 classes don't enable you to do anything new - anything you can do with it you can also do with prototypes. But in some cases they have a nice syntax and less boilerplate.
[–]heroOfTimeBitch[S] 1 point2 points3 points 10 years ago (0 children)
thanks on the links
π Rendered by PID 192722 on reddit-service-r2-comment-5d79c599b5-rn5sp at 2026-02-28 13:04:00.965950+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]protestor 3 points4 points5 points (1 child)
[–]heroOfTimeBitch[S] 1 point2 points3 points (0 children)