title: Multiple return in function not working
body: <p>I have many function inside one main function <code>validate</code> which doesn't work for some reason.However if the function <code>validate</code> contain a single function it works</p>
  
  <pre><code>function validate() {
     return textcheck("txtname");   
     return numcheck("txtnum"); 
    // textcheck and numcheck function are here 
   //doesn't work
  }
  
  
  
  function validate() {
     return textcheck("txtname");// works fine 
  }
  
  
    function validate() {
     return numcheck("txtnum"); // works fine 
   }
  </code></pre>
  
  <p>why does 2 return inside a function don't work</p>