Guys i really need your help!

Tell us what’s happening:
It says is wrong

Your code so far

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


Your browser information:

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

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

Variable names cannot be numbers. You attempted to name your parameters 1 and 2.

A valid javascript variable name can consist letters, digits, underscore (_) and dollar sign ($) but not start with digits.
The problem on your code was raised from naming your variable names (your parameters). Change them to other things and you are good to go.

i tried with dollar sign …ex $1…should i do it this way or how

Just name them similarly to the example code.

1 Like

function functionWithArgs(a, b) {

console.log(a + b);



i’ve tried this too but its not working

You spelled your function name wrong when you called it.