Basic JavaScript - Passing Values to Functions with Arguments

Tell us what’s happening:
Describe your issue in detail here.
i don’t understand where I’m going wrong. I’m assuming I have the right idea just far-fetched. can someone explain it to me in a different matter?
Your code so far

function functionWithArgs(a, b) {
  console.log(1 + 2);
}
function functionWithArgs(c, d) {
  cosnsole.log(7 + 9)
}

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Passing Values to Functions with Arguments

Link to the challenge:

Two issue here

  1. you declared the function twice. You can only declare a function once.

  2. you aren’t using the function parameters

1 Like

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