Functions Recap, 11, I doesn't work


#1


I am at exercise 11.Functions Recap. And I don't understand why it doesn't work. I checked another code, side by side and it should work.But it prints out properly.

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;	
};
console.log(nameString("Tobias"))


#2

There is an extra space. Remove one of them.


#3

Thanks a lot. I feel kinda dumb now...


#4

Don't. If we never made a mistake we might still be in the dark ages. Learning comes from mistakes. Revel in them, and go easy on yourself.


#5

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