In JavaScript, the "continue" statement is a control flow statement that allows you to skip the rest of the current iteration of a loop and continue with the next iteration. When the "continue" statement is encountered within a loop, it jumps to the next iteration, bypassing any code following the "continue" statement within that iteration.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Tutor Joes</title> </head> <body> <script src="js/script.js"></script> </body> </html>To download raw file Click Here
for(let i=1;i<=10;i++) { if(i==4){ continue; } console.log(i); } for(let i=1;i<=10;i++) { if(i%2==0){ continue; } console.log(i); }To download raw file Click Here
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions