title: How to declare global variable for google closure compiler?
body: <pre><code>(function(){ window.myGlobal=42})();
  console.error(myGlobal);
  </code></pre>
  
  <p>java -jar compiler.jar --jscomp_warning undefinedVars </p>
  
  <p>WARNING - variable myGlobal is undeclared</p>