Functions with Arguments

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(one,two)  {
  console.log(1 + 2);
  }
function functionWithArgs(seven,nine)  {
  console.log(7 + 9);
}
functionWithArgs(1 + 2); //output 3
functionWithArgs(7 + 9); //output 16

Your browser information:

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

Think of the arguments like placeholders (that will eventually contain a value, any value). Right now your console logs don’t contain the placeholder names, they only contain static numbers that can’t be changed.

@camperextraordinaire :joy: thank you!