Functions that aren't

Tell us what’s happening:

Should I call these both at once? Ive poured over this, looks verbatim;S
I got it to go once, except for the last condition… should be called with 2 #s

Thanks for your time

Mike

Your code so far
funtion functionWithArgs(one + two) {
console.log(one + two);
}

functionWithArgs(1, 2);

functionWithArgs(7, 9);


funtion functionWithArgs(one + two) {
console.log(one + two); 
}

functionWithArgs(1, 2);

functionWithArgs(7, 9);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36.

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

You’ve got a typo and a syntax error, both of which will keep the tests from running…

Function arguments are always separated by commas, never any other symbol like +.

1 Like

I had caught the typo;s Didnt help
Syntax?

See @JeremyLT’s post above mine. He explains the syntax issue.

Did you fix + in your argument list?

function myFunc(args, are, always, comma, separated) {
  // Function code here
}
1 Like