Function syntax 3/13


#1

Hi, I guess i mess up this code please help:

// 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(sayhello) {
console.log("Great to see you," + " how are you?" + name);
};

// On line 11, call the greeting function!
sayhello("Lester"):


#2

HI you should call the function greeting and not sayHello here

// On line 11, call the greeting function!
sayhello("Lester"):

#3

this is what I put:
var sayHello = function(name){
console.log('Hello' + name);
};
var greeting = function (name) {
console.log("Great to see you," + " " + name);
};

// On line 11, call the greeting function!
greeting("Emily");


#4

Are you having any problems with this?


#5

I do i am staring at it for an hour and i can't wrap my brain around the concept