title: Equivalent of Python's dir in Javascript
body: <p>when I write Python code from the interpreter I can type <code>dir()</code> to have a list of names defined in the current scope. How can achieve to have the same information, programmatically, when I develop Javascript code from a browser using an interactive console like firebug, chrome console, etc?</p>