12/13 It should print out name, it IS printing out the name


#1

Hi all, I've looked at many help topics & ran my code thru a JSHint but I'm stumped. Also refreshing doesn't help. :frowning:

var names = ["Stella","Bri","Erin","Stevie","Karra"];
{
for (var i =0; i < names.length; i++);
console.log("I know someone called"+ " " + names[0] + ".");
}


#2

Check for the dot at the end. Don't include it. The exercise doesnt include it, or at least not in the alert message there... Hope it works


#3

Hey, you made mistake with bracket and also in console statement you need to write names[i]

var names = ["Stella","Bri","Erin","Stevie","Karra"];
/*{= you need to put this bracket under for Loop*/
for (var i =0; i < names.length; i++);
{ = here you need bracket
console.log("I know someone called"+ " " + names[i] + ".");
}