11 Functions recap


#1

Hi. i can't explain, how or why but i think it's a bug or an error of syntax coming from me. The thing is, the console is showing the result waited from the exercice : Hi, I am Susie. But i keep getting this error message.

I'm not really asking for solution, i want clear explaination of my error please :slight_smile:


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


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;
	
};

nameString("Susie");
console.log(nameString("Susie"));

<img src="//codecademy-discourse.s3.amazonaws.com/original/5X/9/7/2/7/9727002f04e92c5604b667563a982b5e251bb14f.png" width="690" height="441">


#2

Check for capitalizations within the given string and match them exactly.


#3

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