27 lines
306 B
Markdown
27 lines
306 B
Markdown
# Loops
|
|
|
|
Repeat code.
|
|
|
|
|
|
[for](/reference/loops/for)
|
|
|
|
```blocks
|
|
for(let i = 0;i<5;i++) {}
|
|
```
|
|
|
|
[repeat](/reference/loops/repeat)
|
|
|
|
![](/static/mb/blocks/contents-0.png)
|
|
|
|
[while](/reference/loops/while)
|
|
|
|
```blocks
|
|
while(true) {}
|
|
```
|
|
|
|
[forever](/reference/basic/forever)
|
|
|
|
```blocks
|
|
basic.forever(() => {})
|
|
```
|