Help with 5 - tying it all together


#1



I dont know what is wrong or why.


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

var greeting = function (name) {
 console.log(name)   
}


#2

We are given a good example to follow, and a poorly constructed function that needs repair.

var functionName = function(parameters) {

};

functionName  =>  greeting

parameters    =>  name

to log        => "Greetings, " + name

to call       => greeting("Dave");

#3

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