Lecture No 33 Advance JavaScript how to use continue and break statement #javascript URDU/HINDI



Break statement:
The break statement is used to jump out of a loop. It can be used to “jump out” of a switch() statement. It breaks the loop and continues executing the code after the loop.
Continue statement:
The continue statement “jumps over” one iteration in the loop. It breaks iteration in the loop and continues executing the next iteration in the loop.

break statements:
It is used to jump out of a loop or a switch without a label reference while with label reference, it used to jump out of any code block.
break labelname;
continue statements:
It used to skip one loop iteration with or without a label reference.
continue labelname;
#continue #break #javascript #development #developer

Comments are closed.