11. Functions recap/"There was a problem with your syntax."


#1

Hi,

When I put this code, it says:"Oops, try again. There was a problem with your syntax."

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

#2

Just remove the last line:

You don't need it. There is no open bracket { to close.


#3

Ok, thanks @julietaatanasova. Now it works. Small mistakes always :sunny: