![Umar Hansa](https://web.dev/images/authors/umarhansa.jpg) Umar Hansa [X](https://twitter.com/umaar) [Homepage](https://umaar.com/)

<br />

![Console shortcut to get the currently selected DOM node](https://developer.chrome.com/static/blog/the-currently-selected-dom-node/image/console-shortcut-get-cu-df2107c8c6a57.gif)

When you have a node selected in the Elements panel, use `$0` to access it in the Console panel. On this subject, you can also use `$_` to access the value of the most recently evaluated expression.