Important Notice:

Course Content
Switch Statement
0/1
break and continue Statements
0/3
Basic Form Validation in JavaScript
0/1
JavaScript & Angular JS (Chapter- 6) M2-R5.1
About Lesson

Continue:-

               JavaScript में Continue का use किसी दी गयी condition के according current loop iteration को skip करने के लिए किया जाता है। और skip करने के बाद Loop next iteration से Start हो जाता है। simply हम कह सकते हैं कि JavaScript में Continue का use हम वहाँ करते हैं जब हमें किसी condition पर loop execution को skip करना हो।

 

Continue:-

               Continue in JavaScript is used to skip the current loop iteration according to a given condition. And after skipping, the loop starts from next iteration. Simply we can say that we use Continue in JavaScript when we have to skip loop execution on some condition.

Example:-

<script>     

let x;     

for(x=1; x <= 5 ; x++)     

{       

    if(x==3)       

          {         

                continue;       

         }         

                 document.write(x+“<br>”);     

  }   

</script>

error: Content is protected !!