Continue - Skips the Following Code, Once in JavaScript

Continue statement will break the current loop and continue to run the loop with the next value.

Example : The below code will skip the loop for i=5
 <script type="text/javascript">
     var x="";
 for(i=1;i<=10;i++)
  {
  if(i==5)
    {
    continue;
    }
  x =x + "The number is " + i + "<br />";
  }

document.write(x);
    </script>

Output
---------
The number is 1
The number is 2
The number is 3
The number is 4
The number is 6
The number is 7
The number is 8
The number is 9
The number is 10