pxt-calliope/docs/blocks/loops/repeat.md

17 lines
253 B
Markdown
Raw Normal View History

2020-08-19 22:03:58 +02:00
# @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)
}
```