Please I need help with excerscise 5 - tying it all together


#1

I can't move past this Syntax... I have tried every option and every way I can think off. Please help me out.

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

// Here is what I have tried

var greeting = function ("alex"){
console.log(greeting + "alex")
}


#2

We need to work with variables, not with strings.

var greeting = function (name){
   console.log("Nice to meet you, " + name); // as an example
}
greeting("Alex");

Check the instructions for the exact phrase to use.


#3

Thank you so much it helps :smile: