Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Tigers | Loops
Introduction to JavaScript

Challenge: TigersChallenge: Tigers

Task

Implement a for loop that outputs the word "Tiger" exactly 5 times.

The output should be:

  1. Begin by assigning the value "Tiger" to the variable tiger.
  2. Utilize the for keyword to create the loop.
  3. Initialize the counter variable i.
  4. Set the range for the counter i to go from 0 to 4 (5 loop iterations: 0, 1, 2, 3, 4).
  5. Include the increment operation (++) for the i counter.
  6. Place the tiger variable inside the console.log() function.

Tudo estava claro?

Seção 5. Capítulo 5
course content

Conteúdo do Curso

Introduction to JavaScript

Challenge: TigersChallenge: Tigers

Task

Implement a for loop that outputs the word "Tiger" exactly 5 times.

The output should be:

  1. Begin by assigning the value "Tiger" to the variable tiger.
  2. Utilize the for keyword to create the loop.
  3. Initialize the counter variable i.
  4. Set the range for the counter i to go from 0 to 4 (5 loop iterations: 0, 1, 2, 3, 4).
  5. Include the increment operation (++) for the i counter.
  6. Place the tiger variable inside the console.log() function.

Tudo estava claro?

Seção 5. Capítulo 5
some-alt