Functions recap


The goal of the exercise is for the program to tell you "Hi I am _____", but every time I use my name in the function it says that Noah is undefined. I don't know how to proceed. Any help would be greatly appreciated.

Replace this line with your code. 
var nameString = function(name) {
	return ("Hi, I am" + " " + name)


"Noah is undefined" because you should be sending a string, not a variable. Try sending it as a string.


Great thanks!! I completely forgot about that. I was so caught up in there being some error in the function that I created. Really appreciate it.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.