Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Printing Numbers from 5 to 9 | Loops
course content

Contenido del Curso

Introduction to JavaScript

Challenge: Printing Numbers from 5 to 9Challenge: Printing Numbers from 5 to 9

Task

Let's implement a while loop that outputs numbers from 5 to 9 to the console.

The output should be:

  1. Set the condition to a <= 9 or a < 10.
  2. Include the variable a within the console.log() function.
  3. Increment the value of a inside the loop.

¿Todo estuvo claro?

Sección 5. Capítulo 3
course content

Contenido del Curso

Introduction to JavaScript

Challenge: Printing Numbers from 5 to 9Challenge: Printing Numbers from 5 to 9

Task

Let's implement a while loop that outputs numbers from 5 to 9 to the console.

The output should be:

  1. Set the condition to a <= 9 or a < 10.
  2. Include the variable a within the console.log() function.
  3. Increment the value of a inside the loop.

¿Todo estuvo claro?

Sección 5. Capítulo 3
some-alt