【斗鱼】Do While loop

更新时间:2016-05-02    来源:网页配色    手机版     字体:

【www.bbyears.com--网页配色】


<script type="text/javascript教程">
i = 0;
do
{
document.write("The number is " + i);
document.write("
");
i++;
}
while (i <= 5)
</script>

Explanation:

i  equal to 0.

The loop will run

i will increase by 1 each time the loop runs.

While i is less than , or equal to, 5, the loop will continue to run.






本文来源:http://www.bbyears.com/wangyezhizuo/23571.html

猜你感兴趣