I need help


#1

I need help at function syntax


#2

what would you like to know? how the function works, what needs to go where, or just plain syntax?


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


#4

so now all you need to do is call the greeting function and give it a name. also you could take out the space within the quotations and just add it to the first string if you wanted, but it doesn't really matter. to call the function just do something like this I think

console.log(greeting("Xavier"));

I'm pretty sure that should add your name and the sentence. if you don't want to display the name by logging it to the console then I'm pretty sure you could just delete the console.log part and it would work. I hope it works for you man :bow:


#5

thanks man it worked


#6

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