Help me , please. Passing Values to Functions with Arguments

Help me , please. Passing Values to Functions with Arguments
0

#1

Tell us what’s happening:

Your code so far

// Example
function ourFunctionWithArgs(a, b) {
  console.log(a - b);
}
ourFunctionWithArgs(10, 5); // Outputs 5

// Only change code below this line.

function functionWithArgs(param1,param2) {
  console.log(param1- param2);
}
functionWithArgs("Hello" , "World");


Your browser information:

Your Browser User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36.

Link to the challenge:


#2

The coding prompt says to: “Create a function called functionWithArgs that accepts two arguments and outputs their sum to the dev console.”

On this line: console.log(param1- param2); you can’t subtract the strings Hello and World together, so you should try a different operator.