Passing Values to Functions with two Arguments

Passing Values to Functions with two Arguments
0

#1

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.
function FunctionWithArgs (x, y ) {
  console. log(x + y);
}
FunctionWithArgs(2, 1);

function FunctionWithArgs (a, b) {
console. log(a + b);
}
FunctionWithArgs(7, 9);```

#2

Capitalization matters. FunctionWithArgs should be functionWithArgs. There’s also no need to declare it twice.


#3

Thanks kevcomedia <3