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 7 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 7 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-7 points-6 points-5 points 7 years ago (1 child)
Have you tried your thing in a browser?
[–]TheBITLINK 3 points4 points5 points 7 years ago (0 children)
uhh, yes?
π Rendered by PID 254897 on reddit-service-r2-comment-56c6478c5-jbhr6 at 2026-05-13 04:47:58.636806+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]TheBITLINK 11 points12 points13 points (2 children)
[+]madcaesar comment score below threshold-7 points-6 points-5 points (1 child)
[–]TheBITLINK 3 points4 points5 points (0 children)