google-chrome Chrome DevTools DOM node index($0, $1, etc.. )


In Google Chrome's developer tools "Elements", you can see that the selected line shows ==$0 that is the DOM node index(as shown below):

DOM node Index

$0 returns the most recently selected element or JavaScript object, $1 returns the second most recently selected one, and so on.

This is useful in debugging. The $0, $1, $2, $3 and $4 commands work as a historical reference to the last five DOM elements inspected within the Elements panel or the last five JavaScript heap objects selected in the Profiles panel.