Where i went wrong


tthis is what i have but i keep getting
"ReferenceError: megan is not defined"

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

my instructions were
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.


nameString(megan) nameString("megan")


wow that's so simple but it was driving me crazy for an hour trying to figure it out. thanks