Confused on question

**Tell us what’s happening: The test does not seem to be passing
Describe your issue in detail here.
I am a bit confused on what the question seems to be asking " You should call functionWithArgs with two numbers after you define it." Any help would be appreciated :).

  **Your code so far**

function functionWithArgs (param1, param2) {
console.log(param1 + param2)
functionWithArgs (1 + 2)

functionWithArgs (7 + 9)

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

This isn’t how you call this function. (also note that I removed the extra space between the function name and the ()s)

Here your function is defined as taking two arguments separated by a comma. You need to make your function calls match this pattern. You need two inputs separated by a comma.

Would it be something like this?

function functionWithArgs(a, b) {

  console.log(a, + b)


functionWithArgs(1, 2)

functionWithArgs(7, 9)

Does it work when you try it? It looks almost reasonable to me. You have an extra comma in your console.log. You need to call console.log with a single argument, the sum of your two arguments to functionWithArgs.

that was it, it was the extra coma. Thank you, buddy :grinning:

1 Like

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