Loops and arrays



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"];
    console.log("I know someone called " , +names[i]);


console.log("I know someone called " , +names[i]);

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


ohhh thank you..:slight_smile:
it was comma..


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