javascript exiting function
<p>I have a function that looks like this:</p>

<pre><code>function MyFunction() {

  //do some work

  if (SomeCondition === true) {
     //do some work
     FunctionToCall();
  }
  //do some more work
}

function FunctionToCall() {...}
</code></pre>

<p>If ever I call the FunctionToCall(), I don't want to continue with <code>do some more work</code>. Do I need to put a return true or return false statement after the <code>FunctionToCall();</code> statement? It seems to work with both.</p>

<p>Thanks.</p>
