I've been wanting to explore some of JavaScript's data structures lately and I realized I don't have an easy way to do it. Take, for instance, the following code:
var a="asdf";
The thing is, a
doesn't exist in its own space. It actually becomes a property of the window
object. This led to some questions, such as "Does anything own the window object?" and "is the console an object attached to the window?"
I figure that being able to see the parent object (assuming it exists) of a variable or object would be really nice. Is there a way to have the console tell you this?