By: Dusty Arlia
Published on Sunday, September 22, 2013, 12:58 PM
Last Updated on Wednesday, July 01, 2015 at 7:51 PM
Total Updates: 3

From inside your web browser's console you can use this shortcut function: $$(), instead of document.querySelectorAll(). You can use it to select multiple elements. This function will return an array-like object of all elements that match the provided CSS selector. Some consoles will return a true array instead of a NodeList. Here is an example of the $$() method using a class selector:


This function is a built-in JavaScript function of the ConsoleCommandLine object.