Iterations

Here we found simple examples of Loops & Iterations  …  for more details see: MDN

for( var i = 0; i < arr.length; i++ ) { code… }

for … in   -&-   for … of

do{  …  }while(condition);

while (condition)

labeled statement

break (will exit the loop)

Study:  “break to a label” ????

continue    (will exit or skip current iteration)

 

x



Copyright 2017. All rights reserved.

Posted January 27, 2017 by Edmundo in category "JS