JS Basic Tutorial
break
Statement:The break
statement is used to exit from a loop prematurely. When a break
statement is encountered inside a loop, the loop will stop executing.
Try it yourself
continue
Statement:The continue
statement is used to skip the current iteration of a loop and move to the next iteration.
Try it yourself