Help


#1



var greeting = function (name) 
{
        console.log("Hello how are you?");
};


#2

You forgot to use name in the log. :slight_smile:


#3

// 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("How do you do?")
//this code works


#4

Just FYI, in your greeting function, you can have the console.log statement as

console.log("Great to see you, " + name);

Concatenating an extra " " isn't necessary


#5

@nelsona0,

Posting random code (especially without format) is against the community guidelines.

This helps nobody out and is just extra spam on the forum.