Loops exercise 5; won't let me pass


#1

var myPlaces = ["New York", "California", "Florida"];
var friendPlaces = ["Home", "Spain", "Florida"];

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

Hello! I would appreciate some help with this. I thought I was doing this correctly, but apparently not.


#2

your loop:

for (var i = 0; i > myArray.length; i++)

you don't have a myArray?

and i > myArray.length, i is 0 in the first iteration of the loop. So this condition is false, the loop never runs


#3

Gosh, I feel like an idiot. Thanks so much!


#4