JSFiddle - React, Tailwind, and code Playground

by Vipin Patil

JavaScript

var x = 1;
alert("Entering the loop<br /> "); 
while (x < 10)
{
  x = x + 1;
  if ((x % 2)==0){
continue; // skill rest of the loop body
  }
   else
   {
       break;
   }
  alert( x + "<br />");
}
alert("Exiting the loop!<br /> ");