Basic JavaScript - Passing Values to Functions with Arguments

Tell us what’s happening:
I’ve tried to solve this challenge many times and I just don’t understand why the output keeps returning as incorrect. Please help.

Your code so far

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

Your browser information:

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

Challenge: Basic JavaScript - Passing Values to Functions with Arguments

Link to the challenge:

functionWithArgs(1,2) should output 3 .
You have to return the sum of individual values in console log

change this

console.log(one, two)

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