Open the inspector, and into the console, type
$('<some selector>').data()
and then hit return to evaluate the data() method and show its return value directly.
There’s no need to use console.log unless you’re calling it within non-interactive code.