Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Task: Printing a Sequence | Section
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
JavaScript Essentials for Beginners - 1768407374405

bookTask: Printing a Sequence

Tarea

Swipe to start coding

Write a program that prints the first ten even numbers.

  • Create a for loop with these parameters:
    • Initialization: start i at 1.
    • Condition: continue the loop while i <= 10.
    • Update: increase i by 1 after each iteration.
  • Inside the loop, use console.log to print the value of i * 2. This will display the first ten even numbers (2, 4, 6, …, 20).

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 68
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

close

bookTask: Printing a Sequence

Desliza para mostrar el menú

Tarea

Swipe to start coding

Write a program that prints the first ten even numbers.

  • Create a for loop with these parameters:
    • Initialization: start i at 1.
    • Condition: continue the loop while i <= 10.
    • Update: increase i by 1 after each iteration.
  • Inside the loop, use console.log to print the value of i * 2. This will display the first ten even numbers (2, 4, 6, …, 20).

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 68
single

single

some-alt