Introduction to Functions in JS Lesson 3


#1


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


Error Message= "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("Amy")


#2

HI you should use the code they gave you at the begin

// 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 greeting = function (name) {
    console.log("Great to see you," + " " + name);
};

// On line 11, call the greeting function!

you just need to call the function greeting() on line 11


#3

how would you type out the code to call out the greeting?
i'm having the exact same problems with this lesson


#4

Hi Just like that...

greeting("here type your name");

#5

Thank you very much. Thought we were supposed to type "sayHello" instead of "greeting"