Basic JavaScript - Passing Values to Functions with Arguments

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

function functionWithArgs(A, B) {
  console.log(1 + 2);
  console.log(11 + 5);
}
functionWithArgs(3, 16);

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36

Challenge Information:

Basic JavaScript - Passing Values to Functions with Arguments

It says

functionWithArgs(1,2) should output 3 .

what am i missing here.

Everything is same as the example , the only thing that confuses all of us is the solution whitch is these sentence:

Create a function called functionWithArgs that accepts two arguments ( numbers) any numbers will work as i understand.

It would help if you replaced the integers here with the actual parameter names so that some arguments can be passed to them.

I also don’t think you need a second console.log

1 Like

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