Function Keyword Updated 17 Oct 2026
continue
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
Normal JavaScript, 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);
}The JavaScript above produces this output:
ac