razmig pulurianCourses Plus Student 23,888 Points
For example, let's say I made a mistake when declaring the variable, and I want to find it so I can revise or delete the declaration. Is this possible?
PS. I know I can just refresh my browser to erase any variables that I created in the console, but I'm curious :)
Stuart Wright41,091 Points
Variables declared in the console are added to the window object (https://developer.mozilla.org/en-US/docs/Web/API/Window).
var my_variable = "hi";
Click on the arrow to expand the window object, scroll through the properties and you should see that my_variable now exists as a property of the window object.