Oops, try again


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!


names.length should be names.length


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