Basic JavaScript - Passing Values to Functions with Arguments

Tell us what’s happening:
Hi, I’ve completed 3 of the 4 ticks and have no idea what the final request is asking of me: 2. Call the function with two numbers as arguments.

Your code so far

function functionWithArgs(one, two) {
  console.log(one + two);
}
functionWithArgs("7", "9")

Your browser information:

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

Challenge: Basic JavaScript - Passing Values to Functions with Arguments

Link to the challenge:

2 posts were merged into an existing topic: Basic JavaScript - Passing Values to Functions with Arguments

When you put a number into quotes like above, it is no longer treated like a number just a string instead.

So remove the quotes to treat these as numbers.

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