Please help! Ive been stuck here for a while....thanks in advance

Tell us what’s happening:

Your code so far


function functionWithArgs(param1, param2) 

{console.log (1+2, 7+9 );}

functionWithArgs(3,16)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; ) 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:

console.log(param1,param2)

change this

same error. Can you please be more detailed?

what u need to print

function functionWithArgs(p1,p2){
console.log(p1,p2)
}

functionWithArgs(1,2)

it will print 1 2

not working :sob: :crying_cat_face: :cry:

can u send me the error

1 Like

Instead of posting your solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full solutions.

Thank you for understanding.

3 Likes

3 16

functionWithArgs(1,2)

should output

3

. // tests completed // console output 3 16
i have the outputs … but i get the errors anyways…

you need to print the sum of the two numbers inputted in the function

but you need to do that using the function parameters

1 Like

Thanks guys… you really are awesome… gathering ideas from you and ive been able to sort myself out.
To the future :nerd_face:

1 Like