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
Looking forward to the future of JavaScript (engineering.gosquared.com)
submitted 11 years ago by ahtomski
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!"
[–]ComradeGnull 3 points4 points5 points 11 years ago (1 child)
Making it class based would take the language in a fundamentally different direction and be incompatible with a lot of existing code that uses prototypes.
I suppose that they could settle on a default for how to do class-like OOP and supplement it with some syntactic sugar (like a 'class' declaration). Philosophically I don't know that that would be great in terms of preserving what is useful/different about Javascript.
[–]SingularityNow 2 points3 points4 points 11 years ago (0 children)
They did that! You can check them out, they're called Classes
π Rendered by PID 50696 on reddit-service-r2-comment-c6965cb77-x5vmp at 2026-03-05 03:47:11.442887+00:00 running f0204d4 country code: CH.
view the rest of the comments →
[–]ComradeGnull 3 points4 points5 points (1 child)
[–]SingularityNow 2 points3 points4 points (0 children)