📜  javascript while 循环 - Javascript 代码示例

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

代码示例6
var i = 1;                      // initialize
while (i < 100) {               // enters the cycle if statement is true
i *= 2;                     // increment to avoid infinite loop
document.write(i + ", ");   // output
}