Go Back

Chrome Dev Tools: $ and $$

Posted on 2019-01-01

We can use $ instead of document.querySelector and $$ instead of document.querySelectorAll.

That's not related to the jQuery $.

Example:

// old
document.querySelectorAll('.myClass')

// new
$$('.myClass')