डिप्लोमा इन ऑफिस मैनेजमेंट एण्ड अकाउटिंग

डिप्लोमा इन ऑफिस मैनेजमेंट एण्ड अकाउटिंग

Full Stack Web Development with Laravel

Full Stack Web Development with Laravel

Affiliate Program

Affiliate Program

Jump statement in java script

Break

Break keyword is used to terminate execution of loop.
 
example
for(var n=1; n<=10; n=n+1){
if(n==5){
break;
}
document.write(`${n} <br>`);
}
 

Continue

continue keyword is used to jump in next step in a loop.
 
example
for(var n=1; n<=10; n=n+1){
if(n==5){
continue;
}
document.write(`${n} <br>`);
}
© 2016 - 2023, All Rights are Reserved.