Regarding function calling


SyntaxError: missing before statement

var calculate = function (number) {
var val = number * 10;

// Badly written function with syntax errors!

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

var greeting = function(name) {
console.log(name+" "+name);
greeting("good mroning")

whats wrong in this?

Replace this line with your code.


Hi just remove this line from your code

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



Remove these line

because it is a badly written function.

We only log name to the console so remove the name+" "+name


thank you..its working