I don't understand what to do to make it work?


#1

i don't understand what to do to make it work ???

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

Write a function called nameString()
It should take name as a parameter.
The function returns a string equal to "Hi, I am" + " " + name.
Call nameString() by passing it your name, and use console.log to print the output.

var nameString = function (name) {

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

};

nameString("Bobby");


#2

pretty close but you added two spaces one at the end of your string and an extra one by +" "+ but you only need one of them.