Someone please explain this

Someone please explain this argument issue to me…

Your code so far


function functionWithArgs(1, 2) {console.log(1, 2);}
functionWithArgs();

Your browser information:

User Agent is: Mozilla/5.0 (Linux; U; Android 10; Nokia 3.4 Build/QKQ1.200719.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/81.0.4044.138 Mobile Safari/537.36 OPR/56.1.2254.57583

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

Arguments (just like any other variable) cannot start with a number, let alone be nothing but a number.
Also an “argument” is included when calling the function, unless you set a default value (which comes later). Your function call doesn’t contain any arguments.

Please read the task again and try to understand what is happening there.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.