💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# For Loop The easiest form of a loop is the for statement. This one has a syntax that is similar to an if statement, but with more options: ~~~ for(condition; end condition; change){ // do it, do it now } ~~~ Lets for example see how to execute the same code ten-times using a `for` loop: ~~~ for(var i = 0; i < 10; i = i + 1){ // do this code ten-times } ~~~ > ***Note***: `i = i + 1` can be written `i++`. Exercise Using a for-loop, create a variable named `message` that equals the concatenation of integers (0, 1, 2, ...) from 0 to 99. ~~~ var message = ""; ~~~