12. loops and arrays II - Code not printing


I don't know why this isn't working, the code looks fine to me.


This is the error message I got:
Oops, try again. Your code should have printed 'I know someone called antoinette', but didn't. Make sure to type the 'I know someone called ' part exactly right, and don't forget the space between that phrase and the name!

This is my code:

var names = ["antoinette", "jeffery", "charlotte", "lucy", "jonathan"];

for (var i = 0; i > names.length; i ++)
    console.log("I know someone called " + names[i])

Please help!!!


Hey there! A very small error in our for-loop syntax. A small hint: ' > '


Thanks for that it worked!


I'm happy to here that!


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