Regarding function calling


#1



https://www.codecademy.com/courses/javascript-beginner-en-6LzGd/0/5?curriculum_id=506324b3a7dffd00020bf661


SyntaxError: missing before statement


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

// 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.


#2

Hi just remove this line from your code

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

#3

@objectwhiz70312

Remove these line

because it is a badly written function.

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


#4

thank you..its working