title: Call a javascript function infinitely
body: <p>I'm new to JS , and I just wonder if it's possible to create kind of a loop with 2 functions .. example:</p>
  
  <pre><code>function a() {
      var myvar =1;
      b();
  }
  function b(){
      var myvar =2;
      a();
  }
  a();
  </code></pre>
  
  <p>I get this result when I try to run it "Uncaught SyntaxError: Unexpected end of input"</p>