It looks right and seems to work, but all that is coming up is a message of "Did you create a function called nameString() ?" what am i doing wrong?


#1

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

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


#2

Are you trying to return or assign to a variable?
If both, what does that accomplish?


#3

To return the result of a function, you don't need the "nameString" variable again. Just say:

return "Hi, I am" + " " + name;