Tell us what’s happening:
Hello, I’m stuck on a lesson with arguments and functions. I can’t quite figure out what’s the missing piece here? Code is below:
function functionWithArgs(a, b) {
console.log(a + b);
}
functionWithArgs(1, 2);
You don’t need to define the function twice. The first one works just fine. Also, the second one has a syntax error. You can’t put a semicolon after the parentheses like that.
I thought the test was briefing me to find the output of both 3 with (1,2) and 16 with (9,7)… That’s what I thought it was telling me to do at the bottom testing instructions…