I am not getting the instruction given



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 (James) {
    console.log("Great to see you," + " " + "James");

// On line 11, call the greeting function!


They want you to use your input (parameter) of the function inside the greeting. You didn't join your input(parameter).

should be something like this:

function hello(name) { // Different way of writing a function. Not too important 
console.log ("random greeting" + " " + name); // <- look here 


You have created a function named greeting, but are calling sayHello. To call the function you created you will want to use greeting("James").

One thing to note, when you place quotes around words, they become strings. So in your console.log statement when you have "James" that is a string and not the input to your function. If you want to use the input of your function simply use James without the quotes.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.