Loops and arrays

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/javascript-beginner-en-NhsaT/2/4?curriculum_id=506324b3a7dffd00020bf661#

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
Oops, try again. Your code should have printed ‘I know someone called A’, 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

```

var names=[“A”,“B”,“C”,“D”,“E”];
for(i=0;i<names.length;i++)
{
console.log("I know someone called " , +names[i]);
}

<do not remove the three backticks above>
console.log("I know someone called " , +names[i]);

You need remove one , or + before names[i]

ohhh thank you…:slight_smile:
it was comma…

1 Like

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