continue Last updated: 17. Oct 2026
Keyword
Skips the rest of the current iteration of a loop (for, for…of, for…in, while, do…while) and continues with the next iteration.
Parameters
This function takes no parameters
Returns
Nothing.
Example
Code example (JS)
JS is normal JavaScript either running in the browser or on the Docly™ server.let array = ["a", "b", "c"];
for(let item of array) {
if (item == "b") continue; /* skips b and continues with c */
write(item);
} Output
The JS code above produces the output shown below:ac