A continue statement exit the current iteration of a do-while loop, for
loop, or while loop. It is a syntax error for a
continue statement to appear outside these loops:
To fix this error, write a for-of loop instead of using the forEach method:
Alternatively, use return to exit the current iteration's function:
Alternatively, write an if statement to skip the undesired code: