How do I fix the code? It is not specific!


#1

greeting var func{name}(console.log(name)))}

Please tell me how to fix it!

It is JavaScript Unit 2 - Meet the functions - number 5 - Tying it all together


#2

Hi your functon greeting like that

var greeting = function() {

}

inside it you should add the console.log()
and I see that you have an argument name so it should bbe like that with it

var greeting = function(name) {

}

#3

From what I could piece together, I got this
var greeting = function (name) {console.log(name)}


#4

Here

var greeting = function (name) {

  console.log(name)
}

Then they aske you to call the function greeting().

Here how to format the code


#5

Hi
Even though call the greeting, I am getting "oops Syntax
error " message pls help.

greeting var func{name}(console.log(name)))}
var greeting = function( name) {
console.log(" Hi" + " " +name);
};
greeting(" Emily");


#6

Hi remove this line..

greeting var func{name}(console.log(name)))}