Stuck on recap


#1


11.Functions recap


its wants it to show sussie but i won't


var nameString = function (name) {
return " hi i am "+" "+ name;
};

    console.log(nameString("pon"));


#2

Whats wrong with that one?


#3

nameString() function doesn't return 'Hi, I am Susie' for the name Susie.


#4

You have to return text formatted exactly like in the instructions:

return "Hi, I am " + name;

#5

i just got to that lesson and i think that your mistake is tu write "susie" instead of "pon"
can you help me and tell me how to make space between " hi i am" and name;


#6

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

look, i´ve jus figured it out


#7

this is still not working for me, could you explain how the function worked for you, please


#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.