Im Lost


I have no clue as to what to do pls help

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

// Badly written function with syntax errors!

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


ok i have no clue HOW to do this


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.


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