title: javascript return true or return false when and how to use it?
body: <p>So I see a lot of JavaScript code (have written some myself) that does something like</p>
  
  <pre><code>&lt;script&gt;
  function CallSomeFunction()
  {
     //function body
  }
  
  $(document).ready(function () {
   callSomeFunction();
   return false;
  });
  </code></pre>
  
  <p>and at other times:</p>
  
  <pre><code>callSomeFunction();
  return true;
  </code></pre>
  
  <p>Basically I've never understood the true use of the return true/false after function calls in JavaScript. I've just assumed its some kind of magic I need my functions to run well.</p>
  
  <p>So please I'd like to know why? why do we use return true or return false after calling a JavaScript function?</p>