title: Using 'return' instead of 'else' in JavaScript
body: <p>I am working on a project which requires some pretty intricate JavaScript processing. This includes a lot of nested <code>if</code>-<code>else</code>s in quite a few places. I have generally taken care to optimise JavaScript code as much as possible by reading the other tips on Stack&nbsp;Overflow, but I am wondering if the following two constructs would make any difference in terms of speed alone:</p>
  
  <pre><code>if(some_condition) {
      // process
      return ;
  }
  
  // Continue the else condition here
  </code></pre>
  
  <p>vs</p>
  
  <pre><code>if(some_condition) {
      // Process
  }
  
  else {
     // The 'else' condition...
  }
  </code></pre>