Nerver mind it work

Tell us what’s happening:

Your code so far


function functionWithArgs(a, b);{
consol.log(a + b);
}

functionWithArgs(1, 2)
functionWithArgs(7, 9)

function functionWithArgs(a, b) {
console.log(a + b);
}

functionWithArgs(10, 5)

Your browser information:

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

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

Hello there,

You have declared the same function twice. And, in your first definition, you have a syntax error, which is pointed out in the console.

I suggest you reset the code and start afresh.

Hope this helps

1 Like