JavaScript(2)

while loop

when you use while loop, you should think three steps.

/*
 1. What do I want to repeat? 
 2. What do I want to change each time? 
 3. How long should we repeat?
*/

 

posted @ 2018-01-23 09:01  Veritas_des_Liberty  阅读(122)  评论(0编辑  收藏  举报