20 lines
279 B
Markdown
20 lines
279 B
Markdown
# Repeat
|
|
|
|
Repeat code a preset number of times.
|
|
|
|
### Block Editor
|
|
|
|
![](/static/mb/blocks/contents-0.png)
|
|
|
|
### Touch Develop
|
|
|
|
Touch Develop has no `repeat` loop. Instead you can used a for loop
|
|
|
|
```
|
|
for (let i = 0; i < 5; i++) {
|
|
}
|
|
```
|
|
|
|
The loop above will repeat five (5) times.
|
|
|