Loops and arrayII


#1


loops and array II


Keeps giving me this error.
"Oops, try again. Your code should have printed 'I know someone called Marco', 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 = ["Marco","Phoenix","jesus","satana","pippo"];

for(i = 0;i < names.lenght ; i ++) {
    console.log("I know someone called" +  names[i]);
}


#2

small error here,

you mispelled length, instead you wrote lenght


#3

haha yeah right , thanks


#4

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