Functions Recap 11 Issue


#1

I'm really struggling with exercise 11 in Functions. I have tried a variety of ways and am sure that the code is correct, but i keep getting the error "Oops, try again. Hmm, it looks like your nameString() function doesn't return 'Hi, I am Susie' for the name Susie."

Please help me, i really want to move onto the next exercise.


var nameString = function (name) {
     return "Hi, i am" + " " + name;
}
console.log(nameString("Paul"));


#2

return "Hi, i am" + " " + name;

check the instruction 3 carefully :slight_smile:

is it same?


#3

can't believe i missed the capitalised 'I'. I have been banging my head for a few hours on this :slight_smile:

Thank you, you are a star!!!!


#4

you are welcome........... :slight_smile:


#5

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