Help for understad this

Tell us what’s happening:
my challenge is done but i need undertand … why ? i mean i dont write the number 7 and 9 ,

Your code so far


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

Your browser information:

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

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

Look at the lower left of your screenshot, the tests are making these function calls:

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

Look carefully at the condition of the problem

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

a , b is for all numbers?(1,2) (7,9) is like automatic ?

every time you call the function the values in the parenthesis are assigned to a and b, the function in this way can give different outputs for different inputs

1 Like

oki , now is more clear i have html in my mind lol but thanks guys

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