What is the purpose of the 'continue' statement in JavaScript loops?
The purpose of the continue statement in JavaScript loops is to skip the rest of the current iteration and start the next iteration. When encountered in a loop, it immediately jumps to the update expression in a for loop, or back to the condition check in while and do...while loops. This is useful when you want to skip processing certain elements without terminating the entire loop. For example, in processing an array, you might use continue to skip null or undefined values, or in a range operation, to skip certain values like multiples of a number.