What am i missing?


#1


https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/0/5?curriculum_id=506324b3a7dffd00020bf661

"Did you find the definition of the greeting code"?

fix the problems with the code below. 

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

My answer:
var sayHello = function (greeting) {
    var val = greeting
    console.log("Hello world")
}
{
    sayHello("greeting")
}


#2

greeting should be the name of the function:

greeting = function(parameter)

name should be the function parameter, you should log the parameter to the console, and a function call doesn't require {}, i think that is what is still missing


#3

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