What Does The Break And Continue Keywords In Programming Languages Do?

What Does The Break And Continue Keywords In Programming Languages Do?
Share

1 Answer

  1. Break
    The break keyword is used in loops to avoid an infinite loop. When a condition is fulfilled, using break keywords helps exits the loop and does not enter an indefinite loop.

    Continue
    The use of continue keyword lets you skip the current iteration in loop and move to the next iteration.

    • 0