Why am I getting an error?

Tell us what’s happening:
I am receiving an error and I don’t know why

Your code so far
function functionWithArgs(one, two){console.log(one + two);}
functionWithArgs:(1,2);


function functionWithArgs(one, two){console.log(one + two);}
functionWithArgs:(1,2);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15.

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

The colon, i guess it’s a typo

2 Likes