Basic JavaScript: Passing Values to Functions with Argument

Tell us what’s happening:
functionWithArgs(1,2) should output 3 .

functionWithArgs(7,9) should output 16 .

Your code so far

function functionWithArgs(a, b) {
console.log(1, 2);
console.log(7, 9);

functionWithArgs(3, 16);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36.

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

remember the goal for this challenge is to write a function that “accepts two arguments and outputs their sum.” So inside your function body you have to perform some addition. what are you adding? The two ‘arguments’ you provide when you call the function. When you’re declaring the function, however, you use variables (place holders for the arguments) to perform the addition. these variables are called parameters (‘a’ and ‘b’ in your code above)

Args are what you pass to your function., i.e a and b.

Then you are supposed to use those variables a and b in your function . That is where your problem lies.