Hello everyone, why this is not working? i need to have a value of 3 and 16 after i write the code.can you tell me where is the mistake,someone?

Tell us what’s happening:
Describe your issue in detail here.

   **Your code so far**

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

function funtionWithArgs(3, 16)

   **Your browser information:**

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

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

You should probably where the function is defined , use a and b instead of numbers 1,2 and 7,9

HI @AndreiBuhaescu !

I would reset the lesson.

Take a close look at the example code

function testFun(param1, param2) {
  console.log(param1, param2);

They are using parameters which is what you want to use.

For your function, you should have two parameters, and inside the body of the function you will need to add those two parameters.

Then when you call the function, that is where you will pass in the actual values.
The number values represent arguements.

These are example function calls.


If you need extra help with functions, this article has a good explanation.

Hope that helps!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.