Register - Login - Forgotten Password

Lesson 5: Repeating Code with Loops in JavaScript

What does this loop display: `while (count <= 3) { console.log(count); count++; }`, when `count` begins at 1? It displays 1, 2 and 3, then stops after `count` becomes 4. The example shows how one written block can execute repeatedly. The changing value reveals both the exact repetition count and the stopping point.

Lesson 5: Repeating Code with Loops in JavaScript

This lesson just one in the category Introduction to JavaScript. To access this lesson you need to have a valid learner account, ask your parent to register you now.