Editor Arrow Download Open
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>JavaScript continue with do...while loop</title> </head> <body> <pre> <!-- Use pre element for work document.writeln() method --> <script> var i = 0; do { i++; if (i == 5){ document.writeln("skipped, i = 5"); continue; } document.writeln(i); } while(i < 10) </script> </pre> </body> </html>
  Preview Arrow