In some consoles (like python, ruby’s irb, or node) you can access the return value from your last statement with an underscore:
> 'Hello'
'Hello'
> _
'Hello'
Is there something similar in developer’s tool console for chrome, or firefox?
Ctrl + Alt + click on arrow to auto expand objectTo expand node and all its children, press Ctrl + Alt + click. Basically, we are going to search in JSON but it is available in visible content that's why we are expanding all nodes.
Console Logs in Chrome: In Google Chrome, the Console Logs are available as a part of Chrome Dev Tools. To open the dedicated Console panel, either: Press Ctrl + Shift + J (Windows / Linux) or Cmd + Opt + J (Mac).
jQuery style DOM queries in the console The most popular API jQuery provides is the $ , used for selecting DOM elements. The Chrome dev tools console allows you to make use of that $ selector, and more. Under the hood, $ is an alias to document.
You can use $_
to get the last returned result.
> 'Hello'
"Hello"
> $_
"Hello"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With