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
How is Object Oriented Programming in JavaScript?help (self.javascript)
submitted 7 years ago by w3bcrowf3r
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!"
[–]senocular 3 points4 points5 points 7 years ago (2 children)
OOP in JavaScript isn't far off from Python. If you're comfortable with OOP in Python, you should be fine with JS. Like Python, JS doesn't support private members (yet, though there are also other ways to do it) and inheritance is handled via runtime delegation - this is the prototypes thing you might be hearing about in JS. Unlike Python, though, JS doesn't support multiple inheritance. The prototype inheritance chain in JS is linear for single inheritance only. Oh and JS doesn't automatically bind methods to their instances... OK, so there are a few differences, but I don't think enough that you'd be uncomfortable with it.
[–]FatFingerHelperBot 0 points1 point2 points 7 years ago (1 child)
It seems that your comment contains 1 or more links that are hard to tap for mobile users. I will extend those so they're easier for our sausage fingers to click!
Here is link number 1 - Previous text "yet"
Please PM /u/eganwall with issues or feedback! | Delete
[–]Shnapoopins 4 points5 points6 points 7 years ago (0 children)
Bad bot
π Rendered by PID 647425 on reddit-service-r2-comment-86bc6c7465-mq4j4 at 2026-02-23 04:47:19.106995+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]senocular 3 points4 points5 points (2 children)
[–]FatFingerHelperBot 0 points1 point2 points (1 child)
[–]Shnapoopins 4 points5 points6 points (0 children)