title: jquery change global variable inside function
body: <pre><code>var variable = "before";
  
  change();
  
  alert(variable);
  
  function change(){
  
  variable = "after";
  
  }
  </code></pre>
  
  <p>Does in possible to change global variable inside function without return ? I need after call function <code>change</code> have output "after"</p>