Same error message showing

Tell us what’s happening:

I have the same answer as in the help video AND the solution at the top of this page,yet it keeps saying You should call

functionWithArgs

with two numbers after you define it.

Your code so far


function functionWithArgs(param1, param2) {
console.log(param1 + param2);
}
functionWithArgs:functionWithArgs(1,2); 
functionWithArgs:functionWithArgs(7,9); 

Your browser information:

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

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

This is not correct syntax.

Example from the challenge:

testFun("Hello", "World");
2 Likes

Embarrassing mistake. The : in the example threw me. Thank you for helping.

1 Like

No worries, we all start somewhere!

1 Like