Im Lost


#1


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


I have no clue as to what to do pls help


// 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)))}


#2

ok i have no clue HOW to do this


#4

They want you to take this:

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

Then using proper syntax, make it into the function it's supposed to be. Then, call the function.

Below, you will see the function provided by the exercise as an example.

Check my comments. I hope they clarify things for you.


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.