title: Are variables statically or dynamically "scoped" in javascript?
body: <p>Or more specific to what I need:</p>
  
  <p>If I call a function from within another function, is it going to pull the variable from within the calling function, or from the level above? Ex:</p>
  
  <pre><code>myVar=0;
  
  function runMe(){
      myVar = 10;
      callMe();
  }
  
  function callMe(){
     addMe = myVar+10;
  }
  </code></pre>
  
  <p>What does myVar end up being if callMe() is called through runMe()?</p>