Calling the Functions with Arguments

Calling the Functions with Arguments
0

#1

i am not understanding how to call the function

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 );
}
call functionWithArgs(1,2)
functionWithArgs(7,9)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36 Avast/69.0.792.82.

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


#2

Review the challenge Write Reusable JavaScript with Functions which explains how to call a function.