It returns 'function' instead of what I put


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



You printed nameString
nameString is a function. Seems reasonable that it says so.


how do I make it print the "Hi, I am" thing?


Call the function and print its result


How do I call the function and print its result? Sorry, I'm a beginner.


If you have a function f then you call f by doing f()
If f requires arguments, then you would put those between the paretheses, f(5)
The function call evaluates to a value that you can then use: 3 + f(5)