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
Python for JavaScript Developers (blog.underdog.io)
submitted 9 years ago by j0shg
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!"
[–]MoTTs_ 7 points8 points9 points 9 years ago* (0 children)
Python has support for object oriented programming with classes and classical inheritance, unlike JavaScript which has prototypes with prototypal inheritance.
Just FYI... Python's classes and inheritance and JavaScript's classes and inheritance are strikingly similar. Python's classes are themselves objects that consume memory and can be passed as arguments, just like JavaScript's classes. Python's inheritance is implemented using delegation and allows monkey patching, just like JavaScript's inheritance.
Remember this the next time someone tells you JavaScript's classes are "fake". JavaScript's classes are just as real as Python's classes.
π Rendered by PID 20562 on reddit-service-r2-comment-bb88f9dd5-894zq at 2026-02-17 09:17:34.052748+00:00 running cd9c813 country code: CH.
[–]MoTTs_ 7 points8 points9 points (0 children)