5. Debugging Where did i go wrong?


#1

var greeting = function(name)
{
console.log("Welcome"+" "+ "Doug");
};
var greeting("Doug");
{;


#2

you have a {; at the end of your code which doesn't serve any purpose, does it? You have a var before your function call but a function call doesn't need to be declared it just makes use of the function value inside of a variable and you don't use the parameter name of your function but instead use the hard coded name "Doug".


#3

i bow before your excellence and thank you kind person