What am i missing?



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


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


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