add examples to 'for of' and 'repeat' (#1794)

This commit is contained in:
Galen Nickel
2019-01-18 07:52:48 -08:00
committed by Peli de Halleux
parent 45e85cba6d
commit f461f4ee4c
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,16 @@
# @extends
## #examples
## Example: Blinking heart
Flash the ``heart`` icon on the screen `4` times.
```blocks
for (let i = 0; i < 4; i++) {
basic.showIcon(IconNames.Heart)
basic.pause(300)
basic.clearScreen()
basic.pause(300)
}
```