Anyone who can help in this JS code?

Tell us what’s happening:
Describe your issue in detail here.
I just tried all methods that are mentioned above but did not got any solution…
anybody who got the solution ?

Your code so far

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

Your browser information:

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

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

where you clicked to ‘ask for help’ you can also click ‘get hint’, but in this case i recommend the ‘watch video’ option.

(except he meant 15 at the end of video, not 10)

Thanks, I just watched the video again and it worked . I just put +operator instead of comma.

1 Like