Ex 3 Please!


what's the wrong in this code?

when i run it says "Did you console.log vacationSpots[i] within the for loop?"

Please Answer

var vacationSpots = ['Paris', 'New York', 'Barcelona'];

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


You may have gotten a step ahead of the code checker.

This bit is part of the next step, take it out until you get to that point:

'I would love to visit ' +


I went through same problem and thought it was a bug..
You should go step by step
remove the extra string and it will work


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