Double dollar $$() vs Dollar sign $() in Chrome console behavior

In the Google Chrome JavaScript console, the difference between $$() and $() is that $$() is a shorthand for document.querySelectorAll(), while $() is a shorthand for document.querySelector().

document.querySelectorAll() returns a list of elements matching the specified CSS selector, while document.querySelector() returns the first element that matches the selector.

So, $$('selector') will return a NodeList of all elements matching the selector, while $('selector') will return a single Element object for the first matching element.