9
When using the console on a Javascript-free page I noticed that when typing $
had the same effect as document.querySelector
and while typing $$
had the same effect as document.querySelectorAll
.
Would be two shortcut functions for querySelector or they have some different specific behavior?
What are their names? I even looked in the kennel http://caniuse.com/#search=%24%24, but I didn’t get any results (I tried "dollar" as well)
These are methods that come with the console.
– bfavaretto
@bfavaretto would have a name? I searched for "dollar Sign"
– Guilherme Nascimento
@bfavaretto actually just asked the question even to exist on the site :p .. but if you have a dup to indicate I will be grateful
– Guilherme Nascimento
I also think it’s good to have the question on the site. I just don’t have time to research to put a decent answer now, so the first comment.
– bfavaretto