pxt-calliope/docs/blocks/loops/for.md
Peli de Halleux fb5bb396e1 more migration to common docs (#370)
* more migration to common docs

* refactoring js

* removed duplicate docs

* migrating more docs

* more refactoring

* migrated browsers page

* updated summary
2017-03-14 12:07:17 -07:00

16 lines
266 B
Markdown

# @extends
## #examples
### Example: Count to 4
This program will show the numbers 0, 1, 2, 3, and 4 one after another on the LED screen.
```blocks
input.onButtonPressed(Button.A, () => {
for(let i = 0; i < 5; ++i) {
basic.showNumber(i)
}
})
```