Continue-3

 

Example of Continue statement:

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <script> var x = 1; document.write("Entering the loop<br /> "); while (x < 10) { x = x + 1; if (x == 5){ continue; } document.write( x + "<br />"); } document.write("Exiting the loop!<br /> "); </script> </body> </html>
Output