Contenido del Curso
Introduction to JavaScript
4. Conditional Statements
Introduction to JavaScript
Challenge: 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:
- Set the condition to a
<= 9
ora < 10
. - Include the variable
a
within theconsole.log()
function. - Increment the value of
a
inside the loop.
¿Todo estuvo claro?
Sección 5. Capítulo 3
Contenido del Curso
Introduction to JavaScript
4. Conditional Statements
Introduction to JavaScript
Challenge: 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:
- Set the condition to a
<= 9
ora < 10
. - Include the variable
a
within theconsole.log()
function. - Increment the value of
a
inside the loop.
¿Todo estuvo claro?
Sección 5. Capítulo 3