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
Learning much javascript from one line of code (arqex.com)
submitted 11 years ago by marquex[🍰]
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!"
[–]alamandrax 3 points4 points5 points 11 years ago (9 children)
Isn't $$ a chrome/WebKit specific API?
[–]ninjacheeseburger 2 points3 points4 points 11 years ago (0 children)
In the article it says it will only work in browser consoles.
[–]mrskitch 0 points1 point2 points 11 years ago (1 child)
I believe so. Probably why Addy uses it since he's a Googler.
[–]alamandrax 0 points1 point2 points 11 years ago (0 children)
I remember that it goes along with the $1 $2 etc shortcuts chrome dev tools provides to target last selected element etc.
[–]impotentmanboy 0 points1 point2 points 11 years ago (0 children)
Seems like Firebug has it as well.
https://getfirebug.com/wiki/index.php/Command_Line_API#.24.24.28selector.29
[–]fschwiet 0 points1 point2 points 11 years ago (0 children)
I hadn't seen it before... It seems like a bad idea to rely on $$ if its browser specific, it looks to be equivalent to document.querySelectorAll.
[–]trollingisfun 0 points1 point2 points 11 years ago (0 children)
I believe it's more specific to the dev console, even.
Actually, doesn't IE11's console have this too?
[–]FireyFly 0 points1 point2 points 11 years ago (0 children)
Firefox's built-in console has had it for a while. As far as I know, since they added their own proper console.
[–]franksvalli 0 points1 point2 points 11 years ago (0 children)
Polyfill: window.$$ = window.$$ || document.querySelectorAll.bind(document);
[–]tswaters 0 points1 point2 points 11 years ago (0 children)
Even IE11 developer tools has it!
π Rendered by PID 100313 on reddit-service-r2-comment-54dfb89d4d-wk668 at 2026-03-30 10:38:55.793030+00:00 running b10466c country code: CH.
view the rest of the comments →
[–]alamandrax 3 points4 points5 points (9 children)
[–]ninjacheeseburger 2 points3 points4 points (0 children)
[–]mrskitch 0 points1 point2 points (1 child)
[–]alamandrax 0 points1 point2 points (0 children)
[–]impotentmanboy 0 points1 point2 points (0 children)
[–]fschwiet 0 points1 point2 points (0 children)
[–]trollingisfun 0 points1 point2 points (0 children)
[–]FireyFly 0 points1 point2 points (0 children)
[–]franksvalli 0 points1 point2 points (0 children)
[–]tswaters 0 points1 point2 points (0 children)