12. Loops and arrays II


#1


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

Omg... help me please... What is wrong with it?

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

var names = ["John", "Mike", "Jessica", "Antonio", "Mary"];
for (var i = 0; i < names.lenght; i++) {
    console.log("I know someone called " + names[i]);
}


#2

you misspelled length


#3

:grinning: thank you


#4