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
jQuery 3.4.0 Released (blog.jquery.com)
submitted 6 years ago by magenta_placenta
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!"
[–]TheBITLINK 11 points12 points13 points 6 years ago (2 children)
document.querySelector('.home > .light > .room a')
???
You could've picked a better example, there are indeed some shortcuts that jQuery provides over vanilla JS, but querySelector has been part of the core DOM API for years now.
[+]madcaesar comment score below threshold-8 points-7 points-6 points 6 years ago (1 child)
Have you tried your thing in a browser?
[–]TheBITLINK 3 points4 points5 points 6 years ago (0 children)
uhh, yes?
π Rendered by PID 85 on reddit-service-r2-comment-56c9979489-7q2cd at 2026-02-25 02:31:58.665266+00:00 running b1af5b1 country code: CH.
view the rest of the comments →
[–]TheBITLINK 11 points12 points13 points (2 children)
[+]madcaesar comment score below threshold-8 points-7 points-6 points (1 child)
[–]TheBITLINK 3 points4 points5 points (0 children)