What am i missing?


#1

I keep getting this message: Oops, try again. Your code should have printed 'I know someone called Juan', 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=["Juan", "Max", "Andrea", "Milagro", "Jose"];
for (i=0; i<names.lenght; i++){
    console.log("I know someone called "+ names[i] );
}


#2

If you ignore what codecademy is saying for a bit, and have a look at how your program behaves compared to what you intend for it to do - how does it differ? Perhaps that says something about what's wrong.


#3

length is spelled wrong ( I know, because I do it ALL the time):slight_smile:


#4

yes i was about to say that also