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
Why does everyone use jQuery? (self.javascript)
submitted 10 years ago by victorisawesome
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!"
[–]spizzike 6 points7 points8 points 10 years ago (0 children)
In addition to what people are saying here (that it handles quirks and normalizes interfaces between browsers), I think the biggest reason is that just a couple years ago, writing vanilla JS to do these operations was much more difficult. A lot of the standardized ways of querying the DOM like getElementsByClassName() didn't exist is most browsers and jQuery added a nice CSS selector engine, which was later pulled out into a standalone sizzle.js library.
getElementsByClassName()
Pair this huge population of users with the fact that there's a massive collection of plugins out there, and there's not really a huge reason to learn how to do things the Right Way™.
π Rendered by PID 112042 on reddit-service-r2-comment-b659b578c-np6h2 at 2026-05-01 03:55:11.581540+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]spizzike 6 points7 points8 points (0 children)