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


#1

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

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]);
}


#2

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


#3

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


#4

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