Plz tell me, what I am doing wrong here?

Tell us what’s happening:

Your code so far


function fucntionWithArgs(param1,param2){
console.log(1+2);
}

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36.

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

Hi @agongtsang what @camperextraordinaire its actually right ! also you have a typo when calling the function

function fucntionWithArgs(param1,param2){
console.log(1+2);
}

calling function need to have the same name function

functionWithArgs(1,2);

If I call it, It represents 1 n 2. Is it ?

Thank you :pray: :blue_heart:

Thank you :slight_smile: I GOT IT !

function functionWithArgs(param1,param2){
console.log(param1+param2);

}
functionWithArgs(1,2);
functionWithArgs(7,9);

1 Like