functionWithArgs Problem

Im a bit lost here.
When I run the test it comes back as completed even though I haven’t input
" functionWithArgs(7,9) should output 16 .".

If someone could spare the time to explain this? It would be greatly appreciated

Your code so far


function functionWithArgs(a, b) {
console.log(a + b);
}
functionWithArgs(1,2);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0.

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

The tests run your function with some arguments - first 1 and 2, then 7 and 9 and so on. You don’t write the code that executes those tests.

The fact you’ve have functionWithArgs(1,2) after your function, that’s not to do with the tests, it’s as a an example so that you can see the output of your function and make sure that it’s what you expected.

1 Like