# 11, recap on function


I think I am right, but it keep to give me opp..please help

This is my code:

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


Erro: 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.


Try this

var nameString = function (name) {

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


Your code is correct actually....it was showing a error because of the extra space here

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

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


Thank you, problem solved!


thank you... i had the same problem.. an extra space was giving a error...


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