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


#1

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

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

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

:frowning:


Functions Recap
#2

Hello :slight_smile:

You have two spaces between am and the name. First one is at the end of this string "Hi, I am " and the second is added to it (+ " "). You only need one space:

return "Hi, I am " + name ;

SCT, system that checks if your code is correct is pretty strict so number of spaces is important.


#3

Thank you so much! :slight_smile:


#4

You're very welcome :slight_smile:


#5