Basic JavaScript Functions help

I cannot for the life of me figure out what I need to change to get past the last test on the " Basic JavaScript: Passing Values to Functions with Arguments" challenge.

I have:

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

functionWithArgs:functionWithArgs(1,2);

The test that I cannot seem to understand is this: " You should call

functionWithArgs

with two numbers after you define it."

I thought I was “calling” the function in my 5th line.

change:

functionWithArgs:functionWithArgs(1,2);

to

functionWithArgs(1,2);

AH! Thank you! I misread the instructions when they said (in context of their example): " Then we can call testFun : testFun("Hello", "World"); "

Thank you thank you!

1 Like