Struggle on passing values to functions with arguments

Tell us what’s happening:
I have looked at the video, hints, and tried everything. I have copied and pasted code that SHOULD be the correct answer and put in the correct capitalization and numbers. Everything, and it still comes out as wrong. It is saying that functionWithArgs isn’t a variable even though I used the line “function functionWithArgs”

  **Your code so far**

function functionWithArgs(a,  b) {
console.log(a + b);
}

functionWithArgs(1, 2);

functionWtihArgs(7, 9);
  **Your browser information:**

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

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

I guess it doesn’t like you calling the function twice.

You should call functionWithArgs with two numbers after you define it.
means you should only call the function once

I understand what you mean, but the assignment is saying that I should be calling it twice. I have seen others complete this and they have the exact same code. I’ve checked for typos, extra spaces, everything. I am clueless

Check your spelling very closely.

If you look at the console pane it is giving you a big clue.

2 Likes

That did It! I can’t believe after over 10 times checking for spelling errors that was there… Thanks a lot!