Basic JavaScript - Passing Values to Functions with Arguments

I think that is what is throwing me off… I was expecting ONLY Two variables in the output. Rather than an output that had at least those 2 numbers.

lol Idk… I passed it so I’ll take that as a win. Going to a coding bootcamp in January and just trying to learn as much as possible before I start.

Maybe if we changed the function to return the values the tests will make more sense?

function functionWithArgs(param1, param2) {
  return param1 + param2;
console.log(functionWithArgs(1, 2) === 3);
console.log(functionWithArgs(7, 9) === 16);

The return value is the next Chalenge.

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