title: Correct use of continue in javascript
body: <p>I have always believed you use <strong>continue</strong> as follows:</p>
  
  <pre><code>var i;
  
  for (i = 0;  i &lt; 10; i++) {
    if(i%2===0) {
      continue;
    }
  }   
  </code></pre>
  
  <p>Or  </p>
  
  <pre><code>var i, myloop;
  
  myloop: for (i = 0;  i &lt; 10; i++) {
    if(i%2===0) {
      continue myloop;
    }
  }
  </code></pre>
  
  <p>But when I run these two snippets of code through <a href="http://www.jslint.com/" rel="noreferrer">JSLint</a>, I get the error:</p>
  
  <pre>
  
  Problem at line 5 character 5: Unexpected 'continue'.
       continue;
  
  </pre>
  
  <p>What am I doing wrong? What is the correct usage?</p>