Basic JavaScript - Passing Values to Functions with Arguments

Tell us what’s happening:
Describe your issue in detail here.
I’m stock here, the third step refuse to run, How do i go abt it?
my code is below
Your code so far

function functionWithArgs(dog, cat){console.log(1+2)}
functionWithArgs(7+9)
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/104.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Passing Values to Functions with Arguments

Link to the challenge:

The way you’ve written your function it will always log 3 to the console. You need to log the sum of the first argument and the second argument (in your case, dog and cat).

1 Like