title: JavaScript 'continue' within if statement
body: <p>Within a for loop I can use <code>break</code> or <code>continue</code>. For example:</p>
  
  <pre><code>for(var i=0;i&lt;5;i++){
    if(i=3){
      continue;   //I know this is absurd to use continue here but it's only for example
    }
  }
  </code></pre>
  
  <p>But, what if I want to use <code>continue</code> from within a function within a for loop.</p>
  
  <p>For example:</p>
  
  <pre><code>for(var i=0;i&lt;5;i++){
    theFunction(i);
  } 
  
  function theFunction(var x){
    if(x==3){
      continue;
    }
  }
  </code></pre>
  
  <p>I know that this will throw an error. But, is there any way to make it work or do something similar?</p>