Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Task: Printing a Sequence | Section
JavaScript Essentials for Beginners - 1768407374405

bookTask: Printing a Sequence

Завдання

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).

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 68
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

bookTask: Printing a Sequence

Свайпніть щоб показати меню

Завдання

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).

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 68
single

single

some-alt