11,Function recap


#1


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


Oops, try again. Hmm, it looks like your nameString() function doesn't return 'Hi, I am Susie' for the name Susie.
"The above line show the error in code so please show me how should i correct it"

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


this where my code is show incorrect


#2

This is causing an extra space which is causing the error

so this is correct : return ("Hi, I am " + name);

Also notice how you typed this: Susei


#3

thank you for helping:slight_smile: