Reputation: 11396
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?
Upvotes: 9
Views: 2499
Reputation: 2642
You can use $_
to get the last returned result.
> 'Hello'
"Hello"
> $_
"Hello"
Upvotes: 14