JS Lesson 3. Intro to Functions


#1

I can't find my mistake!

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

// On line 11, call the greeting function!

var greeting = function ("Jack") {
console.log("Great to see you, " + " " + "Jack")
};

Please help me!


#2

"call" a function doesn't mean to define or declare it. Call just means to invoke it.

In the explanation for this exercise you will find this:

You can run this code by "calling" the function, like this:

sayHello("Emily");

Do you see how that works now?


#3

Thanks so much. Really helped!