continue statement

continue statement

Causes the remaining portion of the enclosing for, while or do-while loop body to be skipped.

Used when it is otherwise awkward to ignore the remaining portion of the loop using conditional statements.

Syntax

continue ;

Explanation

The continue statement causes a jump, as if by goto, to the end of the loop body (it may only appear within the loop body of 登录查看完整内容