"Your code should have printed 'I know someone called frederic', but didn't."


#1


https://codecademy.com/courses/javascript-beginner-en-NhsaT/2/4?curriculum_id=506324b3a7dffd00020bf661#


Oops, try again. Your code should have printed 'I know someone called frederic', 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!


// Click on "Stuck? Get a hint!" if you get stuck!

var names = ["frederic","ly","cassandra","mor","far"];

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


#2

@danishly this is what is wrong:

change this > to this < .

change to this:

names[i]

hope this helps

Steven


#3

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