Functions recap (Ans is printed right still its giving as an error)


#1


Error is:
Oops, try again.
Hmm, it looks like your nameString() function doesn't return 'Hi, I am Susie' for the name Susie.

It printed the ans correctly still Im not able to pass that exercise.


LINK:
https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/2/3?curriculum_id=506324b3a7dffd00020bf661


var nameString = function (name) 
{
       return "Hi,I am" + " " +name;    
       console.log(nameString);
};
nameString("Susie")


#2

the strings returned should be an exact match, you forgot a space between Hi, and I am

also, the console.log should be at the function call (which is after your function)


#3

Thanks a lot buddy :slight_smile: