Help me in 5/13


#1

var calculate = function (number) {
var val = number * 10;
console.log(val);
};

// Badly written function with syntax errors!
greeting var function(name){
console.log(name)
};


#2

It should be

var greeting = function(name) {

console.log(name)
};


#3

My code:
var greeting = function(name)
{
console.log(name);
}

BUT ERROR:
Oops, try again.
You did not call the greeting function. Pass it a name!

What am I doing wrong? Help, please.

Im find. Its right:

var greeting = function (name) {
console.log("Great to see you" + " " + name)
}
greeting("name")


#4

Don't forget the semi-colons:

var greeting = function (name) {
console.log("Great to see you" + " " + name);
}
greeting("name");