Error in Functions Recap


#1



https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/2/3?curriculum_id=506324b3a7dffd00020bf661#


ReferenceError: Qasim is not defined


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

var newName = nameString(Qasim);
console.log(newName);


#2

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


#3

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