12/13 Help me please


Hey all,
I hope you can help me.

this is my code, but I don't know what I did wrong.
Thanks in advance

-A very confused programmer


Nevermind. I got it.
The > should've been <


this line:

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

i (which is 0 the first time we have this loop), if i is bigger then names.length (which is 5), execute the loop. That is not going to execute, it should be the other way around:

for (var i=0; i < names.length; i++)

you want to use i to loop over the names, so as long as there are more names, increase it until i had them all