Exercise 3.2: For loop help


#1


The instructions do not let me continue, even after replacing the console.log from the instructions directly into my code. Tried removing my array, as well as leaving it in.


https://www.codecademy.com/courses/learn-javascript/lessons/loops/exercises/for-loop?action=lesson_resume&link_content_target=interstitial_lesson


There are no error messages, but the instructions do not let me continue...


for (var i = 0; i < vacationSpots.length; i++) 
{
  console.log('I would love to visit ' + vacationSpots[i]);
}


#2

you printed an additional string, this is what is causing the problem, just print the vacationSpots, not additional content


#3

A post was split to a new topic: 3.2 for loop


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.