Error in Functions Recap


ReferenceError: Qasim is not defined

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

var newName = nameString(Qasim);


when you call your function:

var newName = nameString(Qasim);

Qasim should be a string ("Qasim"), which requires quotation marks, otherwise it is considered a variable


Thanks man, i know i forgot to do something. It works now.