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


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.


var nameString = function (name) 
       return "Hi,I am" + " " +name;    


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)


Thanks a lot buddy :slight_smile: