Access last logged value in Chrome console Access last logged value in Chrome console google-chrome google-chrome

Access last logged value in Chrome console


After it's been logged to the console, you can right click on it and get an option to Store as global object. Clicking this will define a new variable like 'temp1' which will point to the variable. Here's a video of it in action (not mine).


Just follow these steps:

  1. Click over the result with right button
  2. Save as global variable
  3. copy(temp1)