pxt-calliope/docs/reference/js/lessons/digi-yoyo/quiz-answers.md
2016-03-25 16:47:20 -07:00

593 B

digi yoyo quiz answers

Answers for digi yoyo quiz.

This is the answer key for the digi yoyo quiz.

1. Describe what a "while loop" does?


A loop that repeats code while a condition is true.

2. Write the code that will create a variable called count and set the variable to 0.


let count = 0

3. Create a while loop that will loop until the variable count equals 4.


while (count < 5) {
    count = count + 1
}