What's wrong?


#1


https://www.codecademy.com/courses/javascript-beginner-en-NhsaT/2/4?curriculum_id=506324b3a7dffd00020bf661#

It says I've got a syntax error...

var names = ["Maud", "Jazzy", "Isabella", "Susie", "Heckla"]();

for (var i = 0; i < 6; i++) {
    console.log("I know someone called" names[i]);
}


#2

Hi your for loop

for (var i = 0; i < 6; i++) {
    console.log("I know someone called" names[i]);
}

this part

 i < 6;

instead of puting i less than 6 you should put i less than name.length

then inside your console.log() its missng the + before name[i]


#3

You also have unneeded parenthesis here.