Passing Values to Functions with Arguments- not working

Tell us what’s happening:

Your code so far

// Example
function ourFunctionWithArgs(a, b) {
  console.log(a - b);
ourFunctionWithArgs(10, 5); // Outputs 5

// Only change code below this line.

const functionWithArgs = (param1,param2)=> {
  console.log(param1 + param2)


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36.

Link to the challenge:

Some of the test can be very picky about details. In the two challenges your are having issues with the problem is not following your function call with a semi-colon.

1 Like

Maybe because you are using an arrow function?, try using a regular function instead.