Basic JavaScript: Passing Values to Functions with Arguments

I am unable to get this challenge to respond. I’ve tried refreshing the page and resetting the code several times. I was able to get the next challenge to respond. Is there a bug?



function functionWithArgs(1, 2) {
  console.log(1 + 2);
}
functionWithArgs(7, 9);

function functionWithArgs(1, 2) {
console.log(1 + 2);
}
functionWithArgs(7, 9);

ok the problem is :

you create the function with the word “function”

BUT

When you wanna call the function passing the arguments, you don’t have to use the word function.

you have to just write the function’s name and inside the () the arguments.

The task asks me to do so. This is what’s been ask:

  1. Create a function called functionWithArgs that accepts two arguments and outputs their sum to the dev console.
  2. Call the function with two numbers as arguments.

functionWithArgs should be a function.

functionWithArgs(1,2) should output 3 .

functionWithArgs(7,9) should output 16 .

You should call functionWithArgs with two numbers after you define it.

yes, but in the comment that has been erased, you were doing this to call it:

function functionWithArgs(7,9)