Functions Recap Problem


#1

Hello again,
To me my code seems right and outputs my name and the name Susie in the console but i still receive an error saying this:
Hmm, it looks like your nameString() function doesn't return 'Hi, I am Susie' for the name Susie.

This is my code:
var nameString = function (name) {
console.log("Hi,I am" + " " + name);

};

nameString("Theo")

And this is what the console shows when ran:
Hi,I am Theo
Hi,I am Susie


#2

There needs to be a space between Hi, and I.


#3

hi you have to write your code as the instruction says other wise it will give you an error. the way you did gives a results but not as the instruction or program wanted.

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