This code is accepted but is it correct?


There is no error message but the code is accepted, however there is no display output which indicates this code is incorrect?

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


Study this example in comparison to your code:

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


This is not meant as the solution, only an example to follow.


it is not correct, the function call should be outside the function and inside the console.log:


oh, and when you call the function, pass it a string (use quotation marks (") like i just did above)


Got it! Thanks for the reply.