I'm stuck in Introduction to Functions in JS,lesson 5


#1



I really don;t understand what I'm supposed to do

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


Replace this line with your code. 
// Nicely written function:
var calculate = function (number) {
    var val = number * 10;
    console.log(val);
};

// Badly written function with syntax errors!

greeting var func{name};(console.log(name));)}; 
greeting("dimitris");


#2

@kapoudimi,
You will have to change the code

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

so that you have a correct syntax


#3

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


#4

thanks man it helped a lot!


#5

thanks a lot it helped!