Oops, try again


#1

var names = ["Nitya", "Sathiya", "Suganthi", "Murthy", "Selvi"];
for (var i=0; i < names.lenghth; i++){
console.log ("I know someone called"+" "+names[i]);
}

I am getting the following error.

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


#2

names.length should be names.length


#3

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