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


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


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) {



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



var greeting = function (name) {


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

Here how to format the code


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");


Hi remove this line..

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