×
×
Correct!

Create a loop that runs through each item in the fruits array.

const fruits = ["Apple", "Banana", "Orange"]; for (x of fruits) { console.log(x); }
const fruits = ["Apple", "Banana", "Orange"]; for (x in fruits) { console.log(x); }

Not Correct

Click here to try again.

Correct!

const fruits = ["Apple", "Banana", "Orange"];
for (x  ) {
  console.log(x);
}

  
  
  




×

Reset the Score?

This will reset the score of ALL 67 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 67 JS exercises.

Share your score:



Get Certified!

Take our JavaScript Developer Certificate to prove that you have fundamental knowledge of web development using JavaScript.