title: How can I export a variable inside of an anonymous function to the global scope in JavaScript?
body: <p>I have this code</p>
  
  <pre><code>((function(){
  var a=2;
  var b=3;
  var c=b+a;
  alert(c);//alert 5
  })());
  alert(c); //no alert
  </code></pre>
  
  <p>My question is which ways I can exports c to the global scope?
  If you can give all the ways.
  Thank you!</p>