How can I assign a JavaScript object to a variable which was printed using console.log?
I am in Chrome console. With Ruby I would use test = _
Here is chrome reference for comand line api. There is $_ variable but it "Returns the value of the most recently evaluated expression" not printed, you can make your own log function like this:
function log(data){
console.log(data);
return data;
}
// after that you can access last printed value by $_
Please, note that my function is for example, console.log possibilities is much more advanced