title: How to display all JavaScript global variables with static code analysis?
body: <p>I know that I can type into Chrome or FF the following command:</p>
  
  <p><code>Object.keys(window);</code></p>
  
  <p>but this displays DHTMLX stuff and also function names in which I'm not interested in. And it doesn't display variables in functions that have not been executed yet. We have more than 20,000 lines of JavaScript codebase, so I would prefer static code analyis. I found <a href="http://www.javascriptlint.com/" rel="nofollow">JavsScript Lint</a>. It is a great tool but I don't know how to use it for displaying global vars.</p>
  
  <p>So I'm searching for memory leaks, forgotten <code>var</code> keywords, and so on...</p>