Console $ Utilities
$ character. They consist of:
$(): A shortcut for what is effectively equivalent to
$$(): A shortcut for what is effectively equivalent to
$x(): A shortcut for running an XPath query on the DOM (similar to
$0: A reference to the selected element within the elements panel (which would be selected it you right-clicked on an element and selected “inspect”)
$4: A history of selections (previous values of
$1is the selection prior to the current
$2is the selection prior to that, etc.
$_: A reference to the last result evaluated in the console
Browser support for these command line APIs may vary (these specifically reference Chromium implementations), so you may need to check to see what works in your browser.