I need help


I need help at function syntax


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


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


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


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:


thanks man it worked


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