title: Returning from a parent function from inside a child function - Javascript
body: <p>I'm relatively new to coding in JavaScript, and I've came across a problem. I like to nest functions to keep things orderly, but how would I exit from a parent function from inside a child function?</p>
  
  <p>example:</p>
  
  <pre><code>function foo1() {
     function foo2() {
        //return foo1() and foo2()?
     }
     foo2();
  }
  </code></pre>