Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Array Element Iteration | Mastering Arrays
course content

Contenido del Curso

JavaScript Data Structures

Challenge: Array Element IterationChallenge: Array Element Iteration

Task

You are given an array of Ford car models. The task is to create a for loop to iterate through the array and log each model.

  1. Use a for loop to iterate through the fordCarModels array.
  2. Inside the for loop, log each model to the console using console.log().

Expected Output:

  1. To create a for loop, use the following syntax: for (let i = 0; i < array.length; i += 1) { ... }.
  2. Use console.log() to log each model inside the for loop.

¿Todo estuvo claro?

Sección 4. Capítulo 6
course content

Contenido del Curso

JavaScript Data Structures

Challenge: Array Element IterationChallenge: Array Element Iteration

Task

You are given an array of Ford car models. The task is to create a for loop to iterate through the array and log each model.

  1. Use a for loop to iterate through the fordCarModels array.
  2. Inside the for loop, log each model to the console using console.log().

Expected Output:

  1. To create a for loop, use the following syntax: for (let i = 0; i < array.length; i += 1) { ... }.
  2. Use console.log() to log each model inside the for loop.

¿Todo estuvo claro?

Sección 4. Capítulo 6
some-alt