NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
# Loops Loops are repetitive conditions where one variable in the loop changes. Loops are handy, if you want to run the same code over and over again, each time with a different value. Instead of writing: ~~~ doThing(cars[0]); doThing(cars[1]); doThing(cars[2]); doThing(cars[3]); doThing(cars[4]); ~~~ You can write: ~~~ for (var i=0; i < cars.length; i++) { doThing(cars[i]); } ~~~