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

Related Posts:

  • Math.round() in javascript     The Math.round() function returns the value of a number rounded to the nearest integer. If the fractional portion of number is 0.5… Read More
  • Math.random() in javascript     The Math.random() function returns a floating-point, pseudo-random number in the range [0, 1] that is, from 0 (inclusive) up to bu… Read More
  • Math.max() in javascript     The Math.max() function returns the largest of zero or more numbers. max() is a static method of Math, you always use it as Math.m… Read More
  • Math.ceil() in javascript     The Math.ceil() function returns the smallest integer greater than or equal to a given number. ceil() is a static method of M… Read More
  • Math.floor() in javascript     The Math.floor() function returns the largest integer less than or equal to a given number. floor() is a static method of Mat… Read More

0 nhận xét:

Đăng nhận xét