11/13


#1

it keeps saying
Hmm, it looks like your nameString() function doesn't return 'Hi, I am Susie' for the name Susie.
but im pretty sure im doing it right
var nameString = function (name) {
return
console.log("Hi, I am" + " "+ name + ".");
}
console.log(nameString("Susie"));
HELP!!!!!!!


#2

To return something, you must do :
return "Hi, I am" + " " + name + ".";

:smiley: :smiley: :smiley: :smiley: :smiley:


#3

hey y'all,
I'm starting to get really confused, as i've been trying to write the code, but alway seem to be doing it wrong. If someone could pleease just take a look at it and tell me what' wrong with it, i'd be very happy.
Here's my code:

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

};
nameString("Susie")
console.log(nameString("Susie");


#4

You forgot a ) in the last line, one for the function call and one for the console.log call makes 2. Also this line:

nameString("Susie")

just calls the function but you do nothing with the returned value so you might as well delete it. Btw "Susie" is just the name of a test case you could pick any other if you like as long as the code is working and by picking "Susie" you don't fool the test function :wink: