Lessons fixes (#1609)

* fixing a bunch of lessons

* more fixes

* more fixes

* more cleanup

* Additional fixes
This commit is contained in:
Peli de Halleux
2018-11-09 15:36:46 -08:00
committed by GitHub
parent 2aa8d0cec6
commit 50367217f3
20 changed files with 75 additions and 91 deletions

View File

@ -8,25 +8,22 @@ Welcome! This tutorial will teach how to create a counter with a while loop. Let
## ~
Create a variable that acts as a counter and set it to 0.
Create a variable that acts as a counter and set it to `0`.
```blocks
let count = 0
```
Add a while loop that will loop over and over until the variable `count` equals 10.
Add a while loop that will loop over and over until the variable ``||variables:count||`` equals `10`.
```blocks
let count = 0
while (count < 10) {
}
```
Let's add a pause. Then show the value of the the count.
Let's add a pause. Then show the value of ``||variables:count||``.
```blocks
let count = 0;
@ -34,11 +31,9 @@ while (count < 10) {
basic.pause(100);
basic.showNumber(count)
}
```
Increase the value of count by one.
Increase the value of ``||variables:count||`` by one.
```blocks
let count = 0
@ -49,10 +44,8 @@ while (count < 10) {
}
```
## ~avatar avatar
Excellent, you're ready to continue with the [challenges](/lessons/digi-yoyo/challenges)!
## ~