Passing Values to Functions with Argument

Tell us what’s happening:
Describe your issue in detail here.
Hello, have written the code below but when i call all the functions. it outputs 3 but am getting this error " functionWithArgs(1,2)" should output ``3```."

  **Your code so far**

function functionWithArgs(a,b){
let sum = a+b;
return sum;


  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

Hello @elvmariga

The instructions say that the function should output the sum to the console.
You should have console.log(sum) inside the function and not just return.

1 Like

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