Not sure what's wrong?


#1

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

it says Marvin is not defined?


#2

Try putting a ; after nameString(Marvin)


#3

nameString (Marvin);
like this see if that works


#4

You are getting that error because Marvin is a variable name. Use "Marvin" (string) instead:

nameString("Marvin")