I don't get hit


#1


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

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


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


#2

Why not just combine them to be console.log(nameString("Susie"));?
If you just put nameString (such as in console.log(nameString)), you're not giving the function an input.

EDIT:
You also seem to be an extra space between I and am here:


#3

Thank I get it now.I see what the i did wrong.Now i can move to the next exercice.


#4

been looking at this problem for about an hour trying to see where i went wrong, turns out it was just a typo.
I am glad that your code did help me out though :slight_smile:


#5

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