title: How to modify a global variable inside of a function?
body: <pre><code>x = 10
  function lol(){
      x = 5
  }
  function rofl(){
      alert(x)
  }
  </code></pre>
  
  <p>In the <code>rofl()</code> function, how can i make the alert popup number <code>5</code>? help me please I'm so noob trying to figure this out for 4 hours now :S</p>