Passing Values to Functions with Arguments12212

Tell us what’s happening: My test is not passing for some reason, please look at the code below to see if you identify the problem

Your code so far


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

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15.

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

  1. Your function does not have any parameters, so it can’t take any arguments.

  2. You need to log the result of adding the two values passed to the function parameters.

  3. You should only have one function name functionWithArgs, not two (remove functionWithArgs1).

function functionWithArgs(parameter, parameter) {
 console.log(parameter+parameter);
}

functionWithArgs(argument,argument);

Example:

function makeFullName(first, last) {
  console.log(first + ' ' + last);
}

makeFullName('John', 'Doe');
// logs: John Doe