Updating loop docs

This commit is contained in:
Ron Hale-Evans 2016-05-24 12:30:31 -07:00
parent 9d405afde0
commit 67c8753315
2 changed files with 6 additions and 9 deletions

View File

@ -20,5 +20,5 @@ basic.showNumber(i)
### See also ### See also
[while](/reference/loops/while), [if](/reference/logic/if), [show number](/reference/basic/show-number) [repeat](/reference/loops/repeat), [while](/reference/loops/while), [if](/reference/logic/if), [show number](/reference/basic/show-number)

View File

@ -1,19 +1,16 @@
# Repeat # Repeat
Repeat code a preset number of times. Run part of the program the number of times you say.
### Block Editor ### Block Editor
![](/static/mb/blocks/contents-0.png) ![](/static/mb/blocks/contents-0.png)
### Touch Develop ### Lessons
Touch Develop has no `repeat` loop. Instead you can used a for loop [looper](/lessons/looper)
``` ### See also
for (let i = 0; i < 5; i++) {
}
```
The loop above will repeat five (5) times. [for](/reference/loops/for), [while](/reference/loops/while), [if](/reference/logic/if), [show number](/reference/basic/show-number)