Tell us what’s happening:
Hi,
I’m getting the belew error while running the test case. Not sure where to make change. Pls help.
“Call functionWithArgs with two numbers after you define it.”
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(x,y){
var sum=x+y;
console.log(sum);
}
functionWithArgs(10,20)
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/passing-values-to-functions-with-arguments