For loops inside loops BUG


#1


I am at section 5 of the Loops lesson and I wrote the code correctly to a desired output in the console, yet the 3rd part of the exercise diaplays this error:
" Did you a for loop that loops over the myPlaces array?"


var myPlaces = ['New Zealand','Iceland','Japan'];

var friendPlaces = ['Cape Town','New Zealand','Russia'];

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


#2

console.log (myPlaces[i])

remove the space before (


#3

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