List the variable and their values
for(var b in window) { if(window.hasOwnProperty(b)) console.log(b+" = "+window[b]); }
Display the value of a particular variable object
console.log(JSON.stringify(content_of_some_variable_object))
Sources: comment from @northern-bradley and answer from @nick-craver