For Loop not completing instruction


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/learn-javascript/lessons/loops/exercises/for-loops-iii?action=lesson_resume&link_content_target=interstitial_lesson

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
Did you a for loop that loops over the myPlaces array?

```

var myPlaces = [“India”, “Japan”, “Italy”];
var friendPlaces = [“Jamaca”, “Spain”, “Italy”];

for(i = 0; i < myPlaces.length; i++){
console.log(myPlaces[i]);
}

<do not remove the three backticks above>

#2

Solved the issue, It wanted me to put var in front of i=0


#3

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