11. Functions recap


Hi, I'm currently stuck on this task. I know I've made some stupid mistake, but can't quite figure out what.
My code:

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

The error:
ReferenceError: Eliot is not defined



Hi first you don't have to call it you just need tor print it like that console.log(nameString("Eliot")); also you have to remove the space in return after the "I am " and its should be like that return
"Hi, I am" + " " + name;


Wow, seems so simple now, thanks. :slightly_smiling:


Your welcome I'm glad that I could Help you..