Use of break and continue in jQuery
<p>I know with core Javascript we can do things like this:</p>

<pre><code>for(i=1;i&lt;10;i++){
   if(i==5){
    //break or continue
   }
}
</code></pre>

<p>But why this is not correct ?</p>

<pre><code>$.each(iteratorarray,function(i){ //iteratorarray - just an array
  if(i==5){
    //break or continue,will cause error here
  }
});
</code></pre>
