3. Function Syntax weird error



Oops, try again. You did not call the greeting function. Pass it a name!

// Below is the greeting function!
// See line 7
// We can join strings together using the plus sign (+)
// See the hint for more details about how this works.

var sayHello = function (name) {
    console.log("Great to see you," + " " + name);

// On line 11, call the greeting function!


This spells out what is missing in the submitted code.


Well it does say ''Great to see you, Emily"


Please tell me how to call it then :confused:


change your variable name to greeting


wow... the instructions are confusing.. thanks! :smiley:


No problem mahn :smiley: They get a bit confusing, that's true.


wth is going on?


Hey just relax small typo error. type 'greeting' instead of 'greetings'


I swear on me mum xD This is so confusing... they should allow you to call it what you want, as long as it says ''Great to meet you'' etc


Ahaha well, we live and learn. But outside the codeacademy console you can call it whatever the heck you want :sweat_smile: You too mate


Well thanks for the help!