if(){ }else if(){ }else{ }
for(var i = 0; i< 10; i++){ if(i==10) { break; 中止循环 } if(i==5) { continue; 跳出本次循环 } }
while (条件) { 需要执行的代码 }
do { x=x + "The number is " + i + ""; i++; } while (i<5);