Basic JavaScript:< Passing Values to Functions with Arguments>

Tell us what’s happening:

hi,
i dont know what am doing wrong. please can you assist
Your code so far

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


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

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.116 Safari/537.36.

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

you can’t declare twice a function, remove one of the two


I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Thank you it worked... alright i will be doing that (preformatted text) .