Passing Values to Functions Arguments

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

I feel like this is correct, but obviously isn’t , could someone please tell me where I’m going wrong, thank you.
Your code so far

function functionWithArgs(1, 2) {
console.log(1, 2)
}
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.141 Safari/537.36

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

you should give parameter names not literal values in a function declaration. values are given when you call a function then those values are passed to these parameters. you can access them using parameter names just like variables. and you should call the function with its name along with parentheses and the arguments

Finally got it in the end, thank you for pointing out where I was going wrong.

1 Like