Although I have entered the right parameter to the function the code is returning some error

Oops, try again. Hmm, it looks like your nameString() function doesn't return 'Hi, I am Susie' for the name Susie.

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


Have a close look at the required string in the Instructions...
You could copy&paste the string......