Basic JavaScript - Passing Values to Functions with Arguments

Tell us what’s happening:
Describe your issue in detail here.
I do not understand why this isn’t functioning. I watched the help video assigned with this task as well as Youtube videos. Any advice would be appreciated.

type or paste code here

function functionWithArgs(number1, number2){
console.log(number1 + number2)
}

functionWithArgs(1, 2)``

  **Your code so far**
function functionWithArgs(number1, number2){
console.log(number1 + number2)
}

functionWithArgs(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/103.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Passing Values to Functions with Arguments

Link to the challenge:

I don’t understand either. If you are using the exact code that is shown under **Your code so far** above then it should pass. Are you sure there isn’t anything else in the editor?

Nothing. I have ran this about a dozen times. Sometimes using a and b, instead of number1 and number 2. I don’t have a clue what to do and can’t advance any further.

I just copied and pasted what was in the “hint” page, and that didn’t work. I have no idea what to do next???

Try a different browser.

ok
i’ll give anything a try at this poing

That worked. Thanks for the help!

It would be interesting to know if you ever figure out what was keeping the other browser from working properly. This is very simple JS so I’m having trouble guessing what it could be. If I had to guess I’m thinking it might be some sort of extension. Possibly one to help protect against malicious JS.

I don’t know. But since i swapped I haven’t had any problems. Im now using Firefox.

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