Utilizor
Contact Us

Loop Control

Managing loop execution.

Loop Control

You can control loops using break and continue statements, just like in for loops.

These statements work exactly the same way in while loops.

Example

let i = 0;
while (i < 10) {
  if (i === 3) break;
  i++;
}