Query elements in the console with double dollar
Use $$ in the DevTools console to get all matching elements as a real array, so map and filter work, and $ for the first match.
document.querySelectorAll returns a NodeList, which has no map or filter. In the DevTools console, $$ runs the same query and returns a plain array.
$$("a").map((a) => a.href)(2) ['https://example.test/a', 'https://example.test/b']$ is the matching shortcut for document.querySelector, so $("h1").textContent reads the first heading. Both take an optional second argument, the node to search in, as in $$("li", $0), which limits the search to the selected list. See the Console Utilities reference.
Combine them with the rest of the utilities. For example, copy($$("a").map((a) => a.href).join("\n")) puts every link on your clipboard.
If the page defines its own $ or $$, as jQuery or a framework does, the console uses the page's version instead, and the shortcut behaves differently. Check what $ is before trusting it.
Both exist only in DevTools. In page code, write document.querySelectorAll and use Array.from when you need array methods.