Where i went wrong


#1

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

var nameString = function(name)
{
return "Hi, I am" + " " +name;
};
nameString(megan)
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.


#2

nameString(megan) nameString("megan")


#3

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