Passing Values to Functions with Arguments2

Passing Values to Functions with Arguments2
0

#1

Tell us what’s happening:
The output is right but can’t pass the challenge

Your code so far


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

// Only change the code below this line.

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/passing-values-to-functions-with-arguments


#2

i am also stuck at this point for some reason after a good 10 mins of reasearch for the answer its still driving me crazy even though i have literally done what its asked for from the very start. if anyone has to the solution to this problem can you please provide us with one.

thank you


#3

Do a search on the forum for this challenge and you will see this has already been reported as an issue on Github.

Instead of creating a hack to pass the challenge, simply skip this challenge and come back later when it is fixed.


#4

if your answer is same as mine then don’t worry you are absolutely right its a bug, simply move on to next lesson.


#5

thanks it was fully bugging me for along time :joy: