title: JS: Returning the return
body: <p>I have a function <code>Main</code> in which there is function <code>kid</code> in javascript. 
  I want to run to run <code>return</code> of <code>Main</code> from the <code>kid</code> function. How do I do it</p>
  
  <p>In <code>kid</code> function, I wrote a command <code>return return;</code> which gave the following error</p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Unexpected token return</p>
  </blockquote>
  
  <p>I know the long process like return a true value from <code>kid</code> function and then checking value in Main and then <code>return</code> but I want to know whether there is a better method</p>
  
  <p><strong>Edit:</strong> </p>
  
  <pre><code>    function Main() {
        if (a=2) {
         //some code X here
         kid();
         } else if (a=3) {
         //some code Y here
         } else if (a=4) {
         //some code Z here
         kid();
         }
  
         //some code here
         return;
  
      }
  
  function kid() {
  //some checks here 
  //if the check fails I want to return from the function Main()
  }
  </code></pre>