Ulysse BN
Ulysse BN

Reputation: 11396

Get last returned value from Chrome developer tools console

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

Answers (1)

tklg
tklg

Reputation: 2642

You can use $_ to get the last returned result.

> 'Hello'
"Hello"
> $_
"Hello"

Upvotes: 14

Related Questions