Loops and arrayII


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]);


small error here,

you mispelled length, instead you wrote lenght


haha yeah right , thanks


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