The difference between break, continue and return statements

Time:2021-4-14

break: interrupts execution and outputs results

continue: skip this time and continue to execute the remaining code

return: exits the loop, interrupts execution, and returns function parameters