Passing Values to Functions with Arguments 3

Tell us what’s happening:
I dont understand why it doesnt pass ?

Your code so far


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

// Only change code below this line.
function functionWithArgs(param1, param2) {
  console.log(param1 + param2);
}
functionWithArgs(7, 9)
functionWithArgs(1,2)

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/passing-values-to-functions-with-arguments

statemements in javascript are concluded with a semicolon
add the semicolons and you will pass

1 Like