📜  9.6.1. while 循环语法 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:48.406000             🧑  作者: Mango

代码示例1
//The general syntax of a while loop looks like this:

while (boolean expression) {
   body
}

/*A while loop will continue to repeat as long as its boolean expression 
evaluates to true. The condition typically includes a value or variable 
that is updated within the loop, so that the expression eventually 
becomes false.*/