12. Introduction to 'For' Loop in JS Problem!



I can't clear this lesson because of some error but I can't figure out whats wrong with the code. It behaves like it should on the log. The error message is this:

Oops, try again. Your code should have printed 'I know someone called calle', 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!....
I have space between and also even copy pasted the text tho I get the same message.... :sweat:

var names=["calle","edward","chales","black","king"];

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


but the , introduces another space, so now you have two spaces between called and the name of the person


:joy: :joy: :joy: :joy: Thanks man....


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