continue is kind of like goto. Are you familiar with break? It’s easier to think about them in contrast:
-
breakterminates the loop (jumps to the code below it). -
continueterminates the rest of the processing of the code within the loop for the current iteration, but continues the loop.