Function syntax


#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!

Replace this line with your code. 

// 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!
{
console.log("Hello" + " " + "Alireza");
};

Continuing the discussion from 3. Function syntax. Help me, please: "You did not call the greeting function." But I did!:


#2

// 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!
greeting("Alireza")


#3

Did you resolve the issue?


#4

you should use greeting in console not name.....