Continue-1

 

Continue statement is used to jump over to next iteration in the loop. See the code snippet:

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <p id="sample"></p> <script> var text = ""; var i; for (i = 0; i < 10; i++) { if (i === 3) { continue; } text +=i + "<br>"; } document.getElementById("sample").innerHTML = text; </script> </body> </html>
Output