continue in javascript

     continue is used to terminate the current iteration of the loop. If will not terminate the control from the whole loop just terminate the control from the current iteration.

syntax

     continue [label];

Example

     for (i = 0; i < 3; i++)
     {
      if (1 == 2)
         continue;
       alert(i);
     }



Example Program:- (Editor)


Editor is Loading...

Advertisement



Tags:
continue in allinworld99, javascript in allinworld99,loop in allinworld99

0 nhận xét:

Đăng nhận xét