Tell us what’s happening:
Hi, the output values are 3 and 16 of which are correct however it is saying it still wants me to call functionWithArgs with two numbers after I define it.
Any suggestions as to why this isn’t working or am I missing something?
Your code so far
function functionWithArgs(a, b, c, d) {
console.log(a + b);
console.log(c + d);
}
functionWithArgs(1, 2, 7, 9);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Challenge: Basic JavaScript - Passing Values to Functions with Arguments
Link to the challenge: