Why Passing Values to Functions with Arguments

Tell us what’s happening:

SyntaxError: unknown: Unexpected token, expected

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(a, b); {
  console.log(a + b)
}
funktionWithArgs(124 , 2872); 

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36.

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

You have a stray semi-colon that the js parser can’t handle. Hint: the error message tells you which line to look for the error on.

Also be sure to spell function with a ‘c’ not a ‘k’.