3. Function Syntax weird error


#1



https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/0/3?curriculum_id=506324b3a7dffd00020bf661

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!
sayHello("Emily")


#2

This spells out what is missing in the submitted code.


#3

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


#4

Please tell me how to call it then :confused:


#5

change your variable name to greeting


#6

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


#7

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


#8


wth is going on?


#9

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


#10

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


#11

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


#12

Well thanks for the help!


#16