Whats wrong with my code?


#1



Replace this line with your code. 
var names =["yuvi","Viru","Aditya","Jittu","Vijay"];
for(var i = 0;i < names.length; i ++)
{
    console.log("I know someone called "+" "+ name[i]);
}


its says "
 Your code should have printed 'I know someone called yuvi', 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

i would change i ++ to i++ just to be sure. Speaking of spaces, you have two spaces between called and yuvi, after called:

called_"

and between the plus signs:

+"_"+

i replaced them with underscores, so you can see them better, one space will suffice, remove one of the two spaces


#3

@stetim94 i corrected to this
var names =["yuvi","Vishnu","Aditya","Jittu","Vijay"];
for(var i = 0;i < names.length; i++)
{
console.log("I know someone called"+" "+ name[i]);
}
and theres still error in my code


#4

you use name[i] instead of names[i]


#5

ok i got it its names but i typed name in console.log