Problem with11.HELP


#1

My code below:

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

};
console.log(nameString("Zhang Xun"));

but:

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

I have no idea about it.I see many people have this problem,but I can not solve it.
Please help.THANK YOU.


#2

Call your function with 'Susie' as the argument and compare the result to what that error message says it should be.


#3

Hi

your sentence return "Hi,I am "+" "+name; is incorrect. You are writing 2 white spaces between "am" and your name. Delete the space just after "am" (but not the one between the " ")

Cheerio


#4

The error message is the same...:sob:


#5

I did as you said,but the error message is the same.


#6

Ah yes, you also forgot to add a white space between "Hi," and "I"


#7

Yes,I solved it with your help.Thank you:grinning: